BMFPolyline class Null safety

折线

Inheritance
Implemented types
Available Extensions

Constructors

BMFPolyline({required List coordinates, required List<int> indexs, int? width = 5, List? colors = const [], List<String>? textures = const [], bool? dottedLine = true, dynamic lineDashType = BMFLineDashType.LineDashTypeNone, dynamic lineCapType = BMFLineCapType.LineCapButt, dynamic lineJoinType = BMFLineJoinType.LineJoinBevel, dynamic lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true})
BMFPolyline构造方法
BMFPolyline.colorline({required List coordinates, required dynamic strokerColor, int? width = 5, bool? dottedLine = true, dynamic lineDashType = BMFLineDashType.LineDashTypeNone, dynamic lineCapType = BMFLineCapType.LineCapButt, dynamic lineJoinType = BMFLineJoinType.LineJoinBevel, dynamic lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true})
单色折线构造方法
BMFPolyline.fromMap(Map map)
map => BMFPolyline
BMFPolyline.multiColorline({required List coordinates, required List? colors, required List<int> indexs, int? width = 5, bool? dottedLine = true, dynamic lineDashType = BMFLineDashType.LineDashTypeNone, dynamic lineCapType = BMFLineCapType.LineCapButt, dynamic lineJoinType = BMFLineJoinType.LineJoinBevel, dynamic lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true})
多颜色折线构造方法
BMFPolyline.multiTextureline({required List coordinates, required List<String>? textures, required List<int> indexs, int? width = 5, dynamic lineCapType = BMFLineCapType.LineCapButt, dynamic lineJoinType = BMFLineJoinType.LineJoinBevel, dynamic lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true})
多纹理折线构造方法
BMFPolyline.textureline({required List coordinates, required String texture, int? width = 5, dynamic lineCapType = BMFLineCapType.LineCapButt, dynamic lineJoinType = BMFLineJoinType.LineJoinBevel, dynamic lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, bool? isKeepScale = false, bool? isFocus = true, int zIndex = 0, bool visible = true})
单纹理折线构造方法

Properties

bounds → Future
返回overlay外接矩形 since 3.1.0
read-only, override
clickable ↔ bool?
是否可点击
read / write
colors ↔ List?
颜色折线的colors 用于颜色绘制
read / write
coordinates ↔ List
经纬度数组
read / write
dottedLine ↔ bool?
设置折线是否虚线(Android独有)
read / write
hashCode → int
The hash code for this object.
read-only, inherited
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
indexs ↔ List<int>
分段索引(多纹理,多颜色折线请赋值)
read / write
isFocus ↔ bool?
是否可以被选中,获得焦点,默认true
read / write
isKeepScale ↔ bool?
纹理宽、高是否保持原比例渲染,默认为false
read / write
isThined ↔ bool?
是否抽稀 默认ture
read / write
lineCapType ↔ dynamic
line头尾处理方式(不支持虚线) 默认普通头 LineCapButt,
read / write
lineDashType ↔ dynamic
虚线绘制样式 默认实折线 BMFLineDashTypeNone
read / write
lineDirectionCross180 ↔ dynamic
折线经度跨180所需字段 since 3.1.0
read / write
lineJoinType ↔ dynamic
line拐角处理方式(不支持虚线)默认平角衔接 LineJoinBevel,
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
textures ↔ List<String>?
纹理折线的纹理图片路径 用于纹理绘制
read / write
visible ↔ bool?
overlay是否可见
read / write, inherited
width ↔ int?
线宽
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