MethodChannelMapLauncher class

An implementation of MapLauncherPlatform that uses a method channel to communicate with the native iOS and Android code.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
installedMaps Future<List<AvailableMap>>
Returns a list of AvailableMap objects representing the map apps currently installed on the device.
no setteroverride
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isMapAvailable(MapType mapType) Future<bool>
Returns true if the map app of type mapType is installed on the device, false otherwise.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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