showDirections method

Future showDirections({
  1. required MapType mapType,
  2. required Coords destination,
  3. String? destinationTitle,
  4. Coords? origin,
  5. String? originTitle,
  6. List<Waypoint>? waypoints,
  7. DirectionsMode? directionsMode = DirectionsMode.driving,
  8. Map<String, String>? extraParams,
})

Opens the map application specified by mapType and shows directions to destination.

  • mapType: The map application to launch.
  • destination: Coordinates of the destination.
  • destinationTitle: Optional label for the destination.
  • origin: Optional starting point. If omitted, the map app may use the current location.
  • originTitle: Optional label for the origin.
  • waypoints: Optional list of intermediate waypoints along the route.
  • directionsMode: Mode of transport (default is DirectionsMode.driving).
  • extraParams: Extra map-specific query parameters.

Implementation

Future<dynamic> showDirections({
  required MapType mapType,
  required Coords destination,
  String? destinationTitle,
  Coords? origin,
  String? originTitle,
  List<Waypoint>? waypoints,
  DirectionsMode? directionsMode = DirectionsMode.driving,
  Map<String, String>? extraParams,
}) async {
  throw UnimplementedError('showDirections() has not been implemented.');
}