Polygon class
线相关的覆盖物类,内部的属性,描述了覆盖物的纹理、颜色、线宽等特征
- Inheritance
- Object
- BaseOverlay
- Polygon
Constructors
Properties
- fillColor → Color
-
填充颜色
final
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- id → String
-
read-only, inherited
- joinType → JoinType
-
连接点类型,该参数不支持copy时修改,仅能在初始化时设置一次
final
-
points
→ List<
LatLng> -
覆盖物的坐标点数组,不能为空
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- strokeColor → Color
-
边框颜色
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 non-existent method or property is accessed. [...]
inherited
-
setIdForCopy(
String copyId) → void -
inherited
-
toMap(
) → Map< String, dynamic> -
转换成可以序列化的map
override
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
override