DirectionParameters constructor

const DirectionParameters({
  1. required String key,
  2. required Place origin,
  3. required Place destination,
  4. List<Place>? waypoints,
  5. DirectionMode? directionMode,
  6. List<Avoid>? avoids,
  7. Units? units,
  8. Coordinates? center,
  9. int? zoom,
  10. MapType? mapType,
  11. String? language,
  12. String? region,
})

Implementation

const DirectionParameters({
  required super.key,
  required this.origin,
  required this.destination,
  this.waypoints,
  this.directionMode,
  this.avoids,
  this.units,
  super.center,
  super.zoom,
  super.mapType,
  super.language,
  super.region,
})  : assert(waypoints == null || waypoints.length <= kMaxWaypoints,
          "Waypoints must be less than or equal to $kMaxWaypoints"),
      super(mode: MapMode.directions);