BMFPolygon class Null safety
多边形
- Inheritance
-
- Object
- BMFOverlay
- BMFPolygon
- Implemented types
- Available Extensions
Constructors
- BMFPolygon({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构造方法
- BMFPolygon.fromMap(Map map)
- map => BMFPolygon
- BMFPolygon.hollowShapes({required List coordinates, required List? hollowShapes, int? width = 5, dynamic strokeColor = Colors.blue, dynamic fillColor = Colors.red, dynamic lineDashType = BMFLineDashType.LineDashTypeNone, int zIndex = 0, bool visible = true})
- BMFPolygon 镂空构造方法
Properties
- bounds → Future
-
返回overlay外接矩形 since 3.1.0
read-only, override
- coordinates ↔ List
-
经纬度数组
read / write
- fillColor ↔ dynamic
-
设置polygonView的填充色
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- hollowShapes ↔ List?
-
设置中空区域,用来创建中间带空洞的复杂图形。
read / write
- Id → String
-
获取id
@Deprecated('Use `id` method instead since 3.2.0'), read-only, inherited
- id → String
-
获取id since 3.2.0
read-only, inherited
- lineDashType ↔ dynamic
-
设置polygonView为虚线样式
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- strokeColor ↔ dynamic
-
设置polygonView的边框颜色
read / write
- visible ↔ bool?
-
overlay是否可见
read / write, inherited
- width ↔ int?
-
设置polygonView的线宽度
read / write
- zIndex ↔ int?
-
元素的堆叠顺序
read / write, inherited
Methods
-
fromMap(
Map map) → dynamic -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited