GmhPolylineOptions constructor

const GmhPolylineOptions({
  1. VoidCallback? onTap,
  2. List<AvoidableFeature>? avoid,
  3. VoidCallback? onNoRoute,
  4. int width = 10,
  5. int zIndex = 0,
  6. List<TransitMode>? transitModes,
  7. required String apiKey,
  8. bool visible = true,
  9. bool geodesic = false,
  10. Cap endCap = Cap.buttCap,
  11. Color color = Colors.black,
  12. Cap startCap = Cap.buttCap,
  13. TravelMode mode = TravelMode.driving,
  14. bool consumeTapEvents = false,
  15. bool optimizeWaypoints = false,
  16. List<LatLng> points = const <LatLng>[],
  17. JointType jointType = JointType.mitered,
  18. List<PatternItem> patterns = const <PatternItem>[],
})

Google map's polyline options

Implementation

const GmhPolylineOptions({
  this.onTap,
  this.avoid,
  this.onNoRoute,
  this.width = 10,
  this.zIndex = 0,
  this.transitModes,
  required this.apiKey,
  this.visible = true,
  this.geodesic = false,
  this.endCap = Cap.buttCap,
  this.color = Colors.black,
  this.startCap = Cap.buttCap,
  this.mode = TravelMode.driving,
  this.consumeTapEvents = false,
  this.optimizeWaypoints = false,
  this.points = const <LatLng>[],
  this.jointType = JointType.mitered,
  this.patterns = const <PatternItem>[],
});