RouteStatus enum
Enum describing possible router states. Referenced from AsyncRouteListener.
Example:
// Demonstrate all RouteStatus values
print("Available RouteStatus values:");
List<RouteStatus> allStatuses = [
RouteStatus.missingGraph,
RouteStatus.missingPosition,
RouteStatus.missingRoute,
RouteStatus.missingProjection,
RouteStatus.newRoute,
];
for (RouteStatus status in allStatuses) {
print(" - $status: ${status.toString()}");
}
// Demonstrate status checking
RouteStatus testStatus = RouteStatus.newRoute;
switch (testStatus) {
case RouteStatus.newRoute:
print("Router is ready for navigation");
break;
case RouteStatus.missingGraph:
print("Router is missing the route graph");
break;
case RouteStatus.missingPosition:
print("Router is missing the current position");
break;
case RouteStatus.missingProjection:
print("Current position is off the route graph");
break;
case RouteStatus.missingRoute:
print("Router unable to find the route to the destination point");
break;
}
Values
- MISSING_GRAPH → const RouteStatus
-
Router is missing the route graph.
- MISSING_POSITION → const RouteStatus
-
Router is missing the current position.
- MISSING_ROUTE → const RouteStatus
-
Router unable to find the route to the destination point.
- MISSING_PROJECTION → const RouteStatus
-
Current position is off the route graph.
- NEW_ROUTE → const RouteStatus
-
Router is ready and has a valid route.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
RouteStatus> - A constant List of the values in this enum, in order of their declaration.