Polyline constructor
const
Polyline({
- required PolylineId polylineId,
- required List<
LatLng> points, - bool geodesic = false,
- int width = 1,
- Color color = Colors.red,
- Cap startCap = Cap.buttCap,
- Cap endCap = Cap.buttCap,
- JointType jointType = JointType.mitered,
- List<
PatternItem> patterns = const <PatternItem>[], - bool visible = true,
- int zIndex = 0,
- bool clickable = false,
- VoidCallback? onClick,
Implementation
const Polyline({
required this.polylineId,
required this.points,
this.geodesic = false,
this.width = 1,
this.color = Colors.red,
this.startCap = Cap.buttCap,
this.endCap = Cap.buttCap,
this.jointType = JointType.mitered,
this.patterns = const <PatternItem>[],
this.visible = true,
this.zIndex = 0,
this.clickable = false,
this.onClick,
});