BMFPolyline.textureline constructor Null safety
- {required List<
BMFCoordinate> coordinates, - required String texture,
- int? width = 5,
- BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt,
- BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel,
- BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None,
- bool? isThined = true,
- bool? clickable = true,
- bool? isKeepScale = false,
- bool? isFocus = true,
- int zIndex = 0,
- bool visible = true}
单纹理折线构造方法
Implementation
BMFPolyline.textureline({
required this.coordinates,
required String texture,
this.width: 5,
this.lineCapType: BMFLineCapType.LineCapButt,
this.lineJoinType: BMFLineJoinType.LineJoinBevel,
this.lineDirectionCross180: BMFLineDirectionCross180Type.None,
this.isThined: true,
this.clickable: true,
this.isKeepScale: false,
this.isFocus: true,
int zIndex: 0,
bool visible: true,
}) : assert(coordinates.length > 1),
super(zIndex: zIndex, visible: visible) {
textures = <String>[];
textures!.add(texture);
lineDashType = BMFLineDashType.LineDashTypeNone;
}