PolylineMapObject constructor
const
PolylineMapObject({
- required MapObjectId mapId,
- required Polyline polyline,
- double zIndex = 0.0,
- TapCallback<
PolylineMapObject> ? onTap, - bool consumeTapEvents = false,
- bool isVisible = true,
- Color strokeColor = const Color(0xFF0066FF),
- double strokeWidth = 5.0,
- Color outlineColor = const Color(0x00000000),
- double outlineWidth = 0.0,
- double dashLength = 0.0,
- double dashOffset = 0.0,
- double gapLength = 0.0,
- double turnRadius = 10.0,
- double arcApproximationStep = 12.0,
- double gradientLength = 0,
- 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
});