BMFPolygon constructor Null safety

BMFPolygon(
  1. {required List coordinates,
  2. int? width = 5,
  3. dynamic strokeColor = Colors.blue,
  4. dynamic fillColor = Colors.red,
  5. dynamic lineDashType = BMFLineDashType.LineDashTypeNone,
  6. List? hollowShapes,
  7. int zIndex = 0,
  8. bool visible = true}
)

BMFPolygon构造方法

Implementation

BMFPolygon({
  required this.coordinates,
  this.width: 5,
  this.strokeColor: Colors.blue,
  this.fillColor: Colors.red,
  this.lineDashType: BMFLineDashType.LineDashTypeNone,
  this.hollowShapes,
  int zIndex: 0,
  bool visible: true,
})  : assert(coordinates.length > 2),
      super(zIndex: zIndex, visible: visible);