Polyline constructor
const
Polyline({
- required PolylineId polylineId,
- bool consumeTapEvents = false,
- Color color = Colors.black,
- Cap endCap = Cap.buttCap,
- bool geodesic = false,
- JointType jointType = JointType.mitered,
- List<
LatLng> points = const <LatLng>[], - List<
PatternItem> patterns = const <PatternItem>[], - Cap startCap = Cap.buttCap,
- bool visible = true,
- int width = 10,
- int zIndex = 0,
- VoidCallback? onTap,
Creates an immutable object representing a line drawn through geographical locations on the map.
Implementation
const Polyline({
required this.polylineId,
this.consumeTapEvents = false,
this.color = Colors.black,
this.endCap = Cap.buttCap,
this.geodesic = false,
this.jointType = JointType.mitered,
this.points = const <LatLng>[],
this.patterns = const <PatternItem>[],
this.startCap = Cap.buttCap,
this.visible = true,
this.width = 10,
this.zIndex = 0,
this.onTap,
});