PolylineRequest constructor

PolylineRequest({
  1. Uri? proxy,
  2. Map<String, String>? headers,
  3. required PointLatLng origin,
  4. required PointLatLng destination,
  5. required TravelMode mode,
  6. List<PolylineWayPoint> wayPoints = const [],
  7. bool avoidHighways = false,
  8. bool avoidTolls = false,
  9. bool avoidFerries = false,
  10. bool optimizeWaypoints = false,
  11. bool alternatives = false,
  12. int? arrivalTime,
  13. int? departureTime,
  14. 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,
});