BMFGradientLine class
渐变线 since 3.1.0
- Inheritance
-
- Object
- BMFOverlay
- BMFGradientLine
- Implemented types
- Available extensions
Constructors
-
BMFGradientLine({required List<
BMFCoordinate> coordinates, required List<int> indexs, required List<Color> colors, int? width = 5, BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None, bool? isThined = true, bool? clickable = true, int zIndex = 0, bool visible = true, Map? customMap}) - 渐变线构造方法
- BMFGradientLine.fromMap(Map map)
- map => BMFGradientLine
Properties
-
bounds
→ Future<
BMFCoordinateBounds?> -
返回overlay外接矩形 since 3.1.0
no setteroverride
- className ↔ String?
-
类名
getter/setter pairinherited
- clickable ↔ bool?
-
是否可点击 默认为true since 3.5.0
getter/setter pair
-
colors
↔ List<
Color> -
渐变线的colors
getter/setter pair
-
coordinates
↔ List<
BMFCoordinate> -
经纬度数组
getter/setter pair
- customMap ↔ Map?
-
开发者自定义字段
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- Id → String
-
获取id
no setterinherited
- id → String
-
获取id since 3.2.0
no setterinherited
-
indexs
↔ List<
int> -
分段索引
getter/setter pair
- isThined ↔ bool?
-
是否抽稀 默认ture
getter/setter pair
- lineDirectionCross180 ↔ BMFLineDirectionCross180Type?
-
渐变线经度跨180所需字段
getter/setter pair
- methodChannel ↔ MethodChannel
-
Available on BMFOverlay, provided by the OverlayMethodChannelExension extension
获取channelgetter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible ↔ bool?
-
overlay是否可见
getter/setter pairinherited
- width ↔ int?
-
线宽
getter/setter pair
- zIndex ↔ int?
-
元素的堆叠顺序
getter/setter pairinherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
model -> map
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateColors(
List< Color> colors, {List<int> ? indexs}) → Future<bool> -
Available on BMFGradientLine, provided by the BMFGradientLineUpdateExtension extension
更新colors -
updateCoordinates(
List< BMFCoordinate> coordinates, {List<int> ? indexs}) → Future<bool> -
Available on BMFGradientLine, provided by the BMFGradientLineUpdateExtension extension
更新经纬度数组 -
updateLineDirectionCross180(
BMFLineDirectionCross180Type lineDirectionCross180) → Future< bool> -
Available on BMFGradientLine, provided by the BMFGradientLineUpdateExtension extension
更新lineDirectionCross180 -
updateThined(
bool isThined) → Future< bool> -
Available on BMFGradientLine, provided by the BMFGradientLineUpdateExtension extension
更新gradientline是否抽稀 -
updateWidth(
int width) → Future< bool> -
Available on BMFGradientLine, provided by the BMFGradientLineUpdateExtension extension
更新线宽
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited