GoogleMapsDirections class

Constructors

GoogleMapsDirections({String? apiKey, String? baseUrl, Client? httpClient, Map<String, String>? apiHeaders})

Properties

apiHeaders Map<String, String>?
no setterinherited
apiKey String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
no setterinherited

Methods

buildQuery(Map<String, dynamic> params) String
inherited
buildUrl({required Object origin, required Object destination, TravelMode? travelMode, List<Waypoint> waypoints = const <Waypoint>[], bool alternatives = false, List<RouteType> avoids = const <RouteType>[], String? language, Unit? units, String? region, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const <TransitMode>[], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) String
directions(Object origin, Object destination, {TravelMode? travelMode, List<Waypoint> waypoints = const [], bool alternatives = false, List<RouteType> avoids = const [], String? language, Unit? units, String? region, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) Future<DirectionsResponse>
directionsWithAddress(String origin, String destination, {TravelMode? travelMode, List<Waypoint> waypoints = const [], bool alternatives = false, List<RouteType> avoids = const [], String? language, Unit? units, String? region, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) Future<DirectionsResponse>
directionsWithLocation(Location origin, Location destination, {TravelMode? travelMode, List<Waypoint> waypoints = const [], bool alternatives = false, List<RouteType> avoids = const [], String? language, Unit? units, String? region, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) Future<DirectionsResponse>
dispose() → void
inherited
doGet(String url, {Map<String, String>? headers}) Future<Response>
inherited
doPost(String url, String body, {Map<String, String>? headers}) Future<Response>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited