AvailableMap class

Class that holds all the information needed to launch a map

Constructors

AvailableMap({required String mapName, required MapType mapType, required String icon})

Properties

hashCode int
The hash code for this object.
no setterinherited
icon String
getter/setter pair
mapName String
getter/setter pair
mapType MapType
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 current map and shows directions to destination
showMarker({required Coords coords, required String title, String? description, int? zoom, Map<String, String>? extraParams}) Future<void>
Launches current map and shows marker at 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?
Parses json object to AvailableMap