RALINavigationState class

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

Constructors

RALINavigationState.new({RALINavigationMode mode = RALINavigationMode.default_, NavigationStatus status = NavigationStatus.inactive, Point? currentLocation, Point? destination, double progress = 0.0, List<NavigationStep>? navigationSteps, DateTime? navigationStartTime, Duration? estimatedTimeRemaining})
//////////// ////////////
const
RALINavigationState.active({required Point currentLocation, required Point destination, required List<NavigationStep> steps, required double progress, RALINavigationMode mode = RALINavigationMode.default_})
Creates a state when navigation is active
factory
RALINavigationState.initial()
//////////// //////////// Creates an initial navigation state
factory
RALINavigationState.routePlanned({required Point destination, required List<NavigationStep> steps, RALINavigationMode mode = RALINavigationMode.default_})
Creates a state when route is planned
factory

Properties

currentLocation → Point?
final
destination → Point?
final
estimatedTimeRemaining → Duration?
final
hashCode → int
The hash code for this object.
no setterinherited
isNavigating → bool
Checks if navigation is currently in progress
no setter
isNearDestination → bool
///////// ///////// Determines if navigation has reached or is near destination
no setter
mode → RALINavigationMode
//////////// ////////////
final
final
final
progress → double
final
remainingDistance → double?
Calculates remaining distance (if current location and destination are known)
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → NavigationStatus
final

Methods

copyWith({RALINavigationMode? mode, NavigationStatus? status, Point? currentLocation, Point? destination, double? progress, List<NavigationStep>? navigationSteps, DateTime? navigationStartTime, Duration? estimatedTimeRemaining}) → RALINavigationState
Creates a copy of the current state with optional updates
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