AvailableMap class

Represents an installed map application that can be launched.

Constructors

AvailableMap({required String mapName, required MapType mapType, required String icon})
Creates an AvailableMap with mapName, mapType, and icon.

Properties

hashCode int
The hash code for this object.
no setterinherited
icon String
Path to the map icon asset (SVG).
getter/setter pair
mapName String
Display name of the map application.
getter/setter pair
mapType MapType
The type of the map application.
getter/setter pair
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
showDirections({required Coords destination, String? destinationTitle, Coords? origin, String? originTitle, List<Waypoint>? waypoints, DirectionsMode directionsMode = DirectionsMode.driving, Map<String, String>? extraParams}) Future<void>
Launches this map and shows directions to the given destination.
showMarker({required Coords coords, required String title, String? description, int zoom = 16, Map<String, String>? extraParams}) Future<void>
Launches this map and shows a marker at the given coords.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic json) AvailableMap
Creates an AvailableMap instance from a JSON object.