BMFGradient class
热力图渐变色定义类
Constructors
-
BMFGradient({@required List<
Color> colors, @required List<double> startPoints}) - 有参构造
- BMFGradient.fromMap(Map map)
- map => BMFGradient
Properties
-
colors
↔ List<
Color> -
渐变色用到的所有颜色数组 colors与startPoints必须对应
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
startPoints
↔ List<
double> -
每一个颜色的起始点数组,数组成员类型为 【0,1】的double值,
个数和mColors的个数必须相同,
数组内元素必须时递增的 例 【0.1, 0.5, 1】;
read / write
Methods
-
fromMap(
Map map) → dynamic - map -> dynamic
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, Object> - model -> map
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited