BMFPolyline.multiTextureline constructor Null safety

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

多纹理折线构造方法

Implementation

BMFPolyline.multiTextureline({
  required this.coordinates,
  required this.textures,
  required this.indexs,
  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),
      assert(indexs.length > 0),
      assert(textures!.length > 0),
      super(zIndex: zIndex, visible: visible) {
  lineDashType = BMFLineDashType.LineDashTypeNone;
}