MapLauncherPlatform class abstract
The platform interface for the MapLauncher plugin.
This class defines the contract for platform-specific implementations. It should be extended by any platform package (e.g. Android, iOS) that provides actual map launching functionality. Application code should not use this class directly, but instead use the public MapLauncher API.
- Inheritance
-
- Object
- PlatformInterface
- MapLauncherPlatform
- Implementers
Constructors
- MapLauncherPlatform.new()
- Constructs a MapLauncherPlatform.
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 setter
- 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 typemapType
is installed on the device,false
otherwise. -
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 -
Opens the map application specified by
mapType
and shows directions todestination
. -
showMarker(
{required MapType mapType, required Coords coords, required String title, String? description, int zoom = 16, Map< String, String> ? extraParams}) → Future -
Opens the map application specified by
mapType
and displays a marker atcoords
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MapLauncherPlatform
-
The default instance of MapLauncherPlatform, which uses
MethodChannelMapLauncher.
getter/setter pair