BMFPolygon constructor Null safety

BMFPolygon(
  1. {required List<BMFCoordinate> coordinates,
  2. int? width = 5,
  3. Color? strokeColor = Colors.blue,
  4. Color? fillColor = Colors.red,
  5. BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone,
  6. List<BMFHollowShape>? 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);