PolylineMapObject constructor

const PolylineMapObject({
  1. required MapObjectId mapId,
  2. required Polyline polyline,
  3. double zIndex = 0.0,
  4. TapCallback<PolylineMapObject>? onTap,
  5. bool consumeTapEvents = false,
  6. bool isVisible = true,
  7. Color strokeColor = const Color(0xFF0066FF),
  8. double strokeWidth = 5.0,
  9. Color outlineColor = const Color(0x00000000),
  10. double outlineWidth = 0.0,
  11. double dashLength = 0.0,
  12. double dashOffset = 0.0,
  13. double gapLength = 0.0,
  14. double turnRadius = 10.0,
  15. double arcApproximationStep = 12.0,
  16. double gradientLength = 0,
  17. bool isInnerOutlineEnabled = false,
})

Implementation

const PolylineMapObject({
  required this.mapId,
  required this.polyline,
  this.zIndex = 0.0,
  this.onTap,
  this.consumeTapEvents = false,
  this.isVisible = true,
  this.strokeColor = const Color(0xFF0066FF),
  this.strokeWidth = 5.0,
  this.outlineColor = const Color(0x00000000),
  this.outlineWidth = 0.0,
  this.dashLength = 0.0,
  this.dashOffset = 0.0,
  this.gapLength = 0.0,
  this.turnRadius = 10.0,
  this.arcApproximationStep = 12.0,
  this.gradientLength = 0,
  this.isInnerOutlineEnabled = false
});