BMFPolyline constructor Null safety

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

BMFPolyline构造方法

Implementation

BMFPolyline({
  required this.coordinates,
  required this.indexs,
  this.width: 5,
  this.colors: const [],
  this.textures: const [],
  this.dottedLine: true,
  this.lineDashType: BMFLineDashType.LineDashTypeNone,
  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),
      super(zIndex: zIndex, visible: visible);