BMFPolygon constructor Null safety
- {required List coordinates,
- int? width = 5,
- dynamic strokeColor = Colors.blue,
- dynamic fillColor = Colors.red,
- dynamic lineDashType = BMFLineDashType.LineDashTypeNone,
- List? hollowShapes,
- int zIndex = 0,
- 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);