BMFPolyline constructor

BMFPolyline(
  1. {required List<BMFCoordinate> coordinates,
  2. List<int>? indexs = const [],
  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. BMFLineBloomMode? lineBloomMode = BMFLineBloomMode.LineBloomModeNone,
  16. double? lineBloomWidth = 0.0,
  17. double? lineBloomAlpha = 255.0,
  18. double? lineBloomGradientASPeed = 5.0,
  19. int? lineBloomBlurTimes = 0,
  20. int zIndex = 0,
  21. bool visible = true,
  22. Map? customMap}
)

BMFPolyline构造方法

Implementation

BMFPolyline({
  required this.coordinates,
  this.indexs = const [],
  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,
  this.lineBloomMode = BMFLineBloomMode.LineBloomModeNone,
  this.lineBloomWidth = 0.0,
  this.lineBloomAlpha = 255.0,
  this.lineBloomGradientASPeed = 5.0,
  this.lineBloomBlurTimes = 0,
  int zIndex = 0,
  bool visible = true,
  Map? customMap,
})  : assert(coordinates.length > 1),
      assert(indexs!.length >= 0),
      super(zIndex: zIndex, visible: visible, customMap: customMap);