BMFGradientLine constructor Null safety
- {required List<
BMFCoordinate> coordinates, - required List<
int> indexs, - required List<
Color> colors, - int? width = 5,
- BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None,
- bool? isThined = true,
- int zIndex = 0,
- bool visible = true}
渐变线构造方法
Implementation
BMFGradientLine({
required this.coordinates,
required this.indexs,
required this.colors,
this.width: 5,
this.lineDirectionCross180: BMFLineDirectionCross180Type.None,
this.isThined: true,
int zIndex: 0,
bool visible: true,
}) : assert(coordinates.length > 1),
assert(indexs.length > 0),
assert(colors.length > 0),
super(zIndex: zIndex, visible: visible);