BMFPolyline.textureline constructor

BMFPolyline.textureline(
  1. {required List<BMFCoordinate> coordinates,
  2. required String texture,
  3. int? width = 5,
  4. BMFLineCapType? lineCapType = BMFLineCapType.LineCapButt,
  5. BMFLineJoinType? lineJoinType = BMFLineJoinType.LineJoinBevel,
  6. BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None,
  7. bool? isThined = true,
  8. bool? clickable = true,
  9. bool? isKeepScale = false,
  10. bool? isFocus = true,
  11. int zIndex = 0,
  12. bool visible = true,
  13. Map? customMap}
)

单纹理折线构造方法

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,
  Map? customMap,
})  : assert(coordinates.length > 1),
      super(zIndex: zIndex, visible: visible, customMap: customMap) {
  textures = <String>[];
  textures!.add(texture);
  lineDashType = BMFLineDashType.LineDashTypeNone;
}