PolylineRequest constructor
PolylineRequest({
- Uri? proxy,
- Map<
String, String> ? headers, - required PointLatLng origin,
- required PointLatLng destination,
- required TravelMode mode,
- List<
PolylineWayPoint> wayPoints = const [], - bool avoidHighways = false,
- bool avoidTolls = false,
- bool avoidFerries = false,
- bool optimizeWaypoints = false,
- bool alternatives = false,
- int? arrivalTime,
- int? departureTime,
- String? transitMode,
Implementation
PolylineRequest({
this.proxy,
this.headers,
required this.origin,
required this.destination,
required this.mode,
this.wayPoints = const [],
this.avoidHighways = false,
this.avoidTolls = false,
this.avoidFerries = false,
this.optimizeWaypoints = false,
this.alternatives = false,
this.arrivalTime,
this.departureTime,
this.transitMode,
});