AppleMaps class

Apple Maps application (iOS only).

Provides deeplink actions that mirror the native Maps URL scheme documented by Apple: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html

Inheritance
Implemented types
Implementers

Constructors

AppleMaps({bool fallbackToStore = false})
Creates a new AppleMaps instance.
AppleMaps.open({bool fallbackToStore = false})
Creates an action to open the Apple Maps app (use with launchApp).
factory

Properties

androidPackageName String?
Android not supported.
no setteroverride
customScheme String
Custom URL scheme for Apple Maps.
no setteroverride
fallbackToStore bool
Whether to redirect to store when app not installed.
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
macosBundleIdentifier String?
macOS bundle identifier for Apple Maps.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeActions List<StoreOpenAppPageAction>
App store actions to open Apple Maps page (iOS only).
no setteroverride
supportedPlatforms List<PlatformType>
Supported platforms list (iOS and macOS).
no setteroverride
website Uri
Apple Maps website for fallback.
no setteroverride

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 Methods

directions({required String destination, String? origin, AppleMapsTransportType? mode, bool fallbackToStore = false}) AppleMapsDirectionsAction
Creates an action to navigate to destination with optional origin and mode.
directionsWithCoords({required Coordinate destination, Coordinate? origin, AppleMapsTransportType? mode, bool fallbackToStore = false}) AppleMapsDirectionsWithCoordsAction
Creates an action to navigate using coordinates.
Creates an action to search using query.
view({required Coordinate coordinate, double? zoom, bool fallbackToStore = false}) AppleMapsViewAction
Creates an action to view a map centered on coordinate (optional zoom).