BMFTraceOverlay constructor

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. bool? isTrackBloom = false,
  7. bool? isGradientColor = false,
  8. double? bloomSpeed = 5.0,
  9. bool? isThined = true,
  10. bool? isCornerSmooth = true,
  11. List<Color>? strokeColors = const [],
  12. int zIndex = 0,
  13. bool visible = true,
})

动态轨迹构造方法

Implementation

BMFTraceOverlay({
  required this.coordinates,
  required this.traceOverlayAnimateOption,
  this.width: 5,
  this.strokeColor: Colors.blue,
  this.fillColor: Colors.green,
  this.isTrackBloom: false,
  this.isGradientColor: false,
  this.bloomSpeed: 5.0,
  this.isThined: true,
  this.isCornerSmooth: true,
  this.strokeColors: const [],
  int zIndex: 0,
  bool visible: true,
})  : assert(coordinates.length > 1),
      super(zIndex: zIndex, visible: visible);