GmhPolylineOptions constructor
const
GmhPolylineOptions({
- VoidCallback? onTap,
- List<
AvoidableFeature> ? avoid, - VoidCallback? onNoRoute,
- int width = 10,
- int zIndex = 0,
- List<
TransitMode> ? transitModes, - required String apiKey,
- bool visible = true,
- bool geodesic = false,
- Cap endCap = Cap.buttCap,
- Color color = Colors.black,
- Cap startCap = Cap.buttCap,
- TravelMode mode = TravelMode.driving,
- bool consumeTapEvents = false,
- bool optimizeWaypoints = false,
- List<
LatLng> points = const <LatLng>[], - JointType jointType = JointType.mitered,
- 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>[],
});