BMFGradient class

热力图渐变色定义类

Implemented types
  • BMFModel

Constructors

BMFGradient({@required List<Color> colors, @required List<double> startPoints})

Properties

colors ↔ List<Color>
渐变色用到的所有颜色数组 colors与startPoints必须对应
read / write
startPoints ↔ List<double>
每一个颜色的起始点数组,数组成员类型为 【0,1】的double值, 个数和mColors的个数必须相同, 数组内元素必须时递增的 例 【0.1, 0.5, 1】;
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

Methods

fromMap(Map map) → dynamic
map -> dynamic
override
toMap() → Map<String, Object>
model -> map
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

gradient() BMFGradient