NavigationController class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Inheritance

Constructors

//////////// ////////////

Properties

alternativeRoutes List<RouteDetails>
no setter
bearing double
no setter
currentLocation RaliPosition?
no setter
currentRoadName String
no setter
currentRoute RouteDetails?
no setter
currentSpeed double
no setter
currentStep NavigationStep?
no setter
currentStepIndex int
no setter
destination RaliPosition?
no setter
distanceToNextTurn double
no setter
estimatedTimeRemaining Duration
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isNavigating bool
no setter
isOverSpeedLimit bool
no setter
isPaused bool
no setter
isPlanned bool
no setter
isRerouting bool
no setter
locationService → dynamic
no setter
mode RALINavigationMode
no setter
nextInstruction String
no setter
progress double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedRouteIndex int
no setter
speedLimit double?
no setter
speedStatus SpeedStatus
no setter
state NavigationStatus
///////// /////////
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pauseNavigation() Future<void>
Temporarily pauses navigation (keeps state but stops updates)
planRoute(RouteDetails route) Future<void>
Plans a route to the set destination
recalculateRoute(Future<RouteDetails> routeFetcher(RaliPosition start, RaliPosition end)) Future<void>
Recalculates the route if needed, using the provided route fetch function
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resumeNavigation() Future<void>
Resumes a paused navigation session
selectRoute(int index) → void
Selects a different route from the alternatives
setDestination(RaliPosition destination) → void
//////////// //////////// Sets the destination point for navigation
setMode(RALINavigationMode newMode) → void
Sets the navigation mode
setRouteOptions(RouteDetails primaryRoute, List<RouteDetails> alternatives) → void
Sets route options including alternatives
startNavigation() Future<void>
//////////// //////////// Starts active navigation along the planned route
stopNavigation() Future<void>
Stops the current navigation session
toString() String
A string representation of this object.
inherited
updateLocation(RaliPosition newLocation) Future<void>
//////////// //////////// Updates the current location and recalculates navigation state
updateSpeed(double speed) → void
Updates the current speed

Operators

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