Polyline constructor

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