Polyline constructor

const Polyline({
  1. required PolylineId polylineId,
  2. bool consumeTapEvents = false,
  3. Color color = Colors.black,
  4. Cap endCap = Cap.buttCap,
  5. bool geodesic = false,
  6. JointType jointType = JointType.mitered,
  7. List<LatLng> points = const <LatLng>[],
  8. List<PatternItem> patterns = const <PatternItem>[],
  9. Cap startCap = Cap.buttCap,
  10. bool visible = true,
  11. int width = 10,
  12. int zIndex = 0,
  13. 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,
});