Polygon class

线相关的覆盖物类,内部的属性,描述了覆盖物的纹理、颜色、线宽等特征

Inheritance

Constructors

Polygon({required List<LatLng> points, double strokeWidth = 10, Color strokeColor = const Color(0xCC00BFFF), Color fillColor = const Color(0xC487CEFA), bool visible = true, JoinType joinType = JoinType.bevel})
默认构造函数

Properties

fillColor Color
填充颜色,默认值为(0xC4E0F0CC)
final
hashCode int
The hash code for this object.
no setteroverride
id String
no setterinherited
joinType JoinType
连接点类型,该参数不支持copy时修改,仅能在初始化时设置一次
final
points List<LatLng>
覆盖物的坐标点数组,不能为空
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color
边框颜色,默认值为(0xCCC4E0F0)
final
strokeWidth double
边框宽度,单位为逻辑像素,同Android中的dp,iOS中的point
final
visible bool
是否可见
final

Methods

clone() Polygon
override
copyWith({List<LatLng>? pointsParam, double? strokeWidthParam, Color? strokeColorParam, Color? fillColorParam, bool? visibleParam}) Polygon
实际copy函数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIdForCopy(String copyId) → void
inherited
toMap() Map<String, dynamic>
转换成可以序列化的map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override