MapBoxNavigation class

Turn-By-Turn Navigation Provider

Constructors

MapBoxNavigation({ValueSetter<RouteEvent>? onRouteEvent})
factory
MapBoxNavigation.private(MethodChannel _methodChannel, EventChannel _routeEventchannel, ValueSetter<RouteEvent>? _routeEventNotifier)

Properties

currentLegIndex int
Show the Navigation View and Begins Direction Routing
getter/setter pair
distanceRemaining Future<double?>
Total distance remaining in meters along route.
no setter
durationRemaining Future<double?>
Total seconds remaining on all legs.
no setter
hashCode int
The hash code for this object.
no setterinherited
legsCount int
getter/setter pair
platformVersion Future<String>
Current Device OS Version
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableOfflineRouting() Future<bool?>
Will download the navigation engine and the user's region to allow offline routing
finishNavigation() Future<bool?>
Ends Navigation and Closes the Navigation View
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startNavigation({required List<WayPoint> wayPoints, required MapBoxOptions options}) Future
toString() String
A string representation of this object.
inherited

Operators

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