BMFGradientLine constructor

BMFGradientLine({
  1. required List<BMFCoordinate> coordinates,
  2. required List<int> indexs,
  3. required List<Color> colors,
  4. int? width = 5,
  5. BMFLineDirectionCross180Type? lineDirectionCross180 = BMFLineDirectionCross180Type.None,
  6. bool? isThined = true,
  7. bool? clickable = true,
  8. int zIndex = 0,
  9. bool visible = true,
  10. Map? customMap,
})

渐变线构造方法

Implementation

BMFGradientLine({
  required this.coordinates,
  required this.indexs,
  required this.colors,
  this.width: 5,
  this.lineDirectionCross180: BMFLineDirectionCross180Type.None,
  this.isThined: true,
  this.clickable: true,
  int zIndex: 0,
  bool visible: true,
  Map? customMap,
})  : assert(coordinates.length > 1),
      assert(indexs.length > 0),
      assert(colors.length > 0),
      super(zIndex: zIndex, visible: visible, customMap: customMap);