BMFPolygon.hollowShapes constructor

BMFPolygon.hollowShapes({
  1. required List<BMFCoordinate>? coordinates,
  2. required List<BMFHollowShape>? hollowShapes,
  3. int? width = 5,
  4. Color? strokeColor = Colors.blue,
  5. Color? fillColor = Colors.red,
  6. BMFLineDashType? lineDashType = BMFLineDashType.LineDashTypeNone,
  7. bool? clickable = false,
  8. int zIndex = 0,
  9. bool visible = true,
  10. Map? customMap,
})

BMFPolygon 镂空构造方法

Implementation

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