MapLauncher class

Provides a simple interface for launching installed map applications to display markers, show directions, or query availability.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

installedMaps Future<List<AvailableMap>>
Returns a list of AvailableMap objects representing the map apps currently installed on the device.
no setter

Static Methods

isMapAvailable(MapType mapType) Future<bool>
Returns true if the map app of type mapType is installed on the device, false otherwise.
showDirections({required MapType mapType, required Coords destination, String? destinationTitle, Coords? origin, String? originTitle, List<Waypoint>? waypoints, DirectionsMode? directionsMode = DirectionsMode.driving, Map<String, String>? extraParams}) Future<void>
Opens the map application specified by mapType and shows directions to destination.
showMarker({required MapType mapType, required Coords coords, required String title, String? description, int zoom = 16, Map<String, String>? extraParams}) Future<void>
Opens the map application specified by mapType and displays a marker at coords.