BMFTraceOverlay constructor Null safety

BMFTraceOverlay(
  1. {required List<BMFCoordinate> coordinates,
  2. required BMFTraceOverlayAnimateOption traceOverlayAnimateOption,
  3. int? width = 5,
  4. Color? strokeColor = Colors.blue,
  5. Color? fillColor = Colors.green,
  6. int zIndex = 0,
  7. bool visible = true}
)

动态轨迹构造方法

Implementation

BMFTraceOverlay({
  required this.coordinates,
  required this.traceOverlayAnimateOption,
  this.width: 5,
  this.strokeColor: Colors.blue,
  this.fillColor: Colors.green,
  int zIndex: 0,
  bool visible: true,
})  : assert(coordinates.length > 1),
      super(zIndex: zIndex, visible: visible);