AppRoute class abstract
A route within the app.
Navigation within the app works by passing a route into the AppRouter.
App routes are meant to be very simple data classes that contain basic information about a target route. It's up to the app and its app router implementation to handle all the path parsing and routing logic behind route navigation.
Supported routes are usually created using one of the static properties / methods on this class.
- Inheritance
- Implementers
- Annotations
Constructors
- AppRoute()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- parent → AppRoute?
-
The parent route for this route.
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- root → AppRoute
-
The root parent route for this route.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
expandAncestors<
T> (Iterable< T> callback(AppRoute ancestor)) → List<T> - Utility method for expanding a route and its ancestors into a list of items.
-
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
-
deviceEvents(
int id) → DeviceEventsRoute -
deviceOverview(
int id) → DeviceOverviewRoute -
deviceRedirect(
String serialNumber) → DeviceRedirectRoute -
eventsRedirect(
String serialNumber) → EventsRedirectRoute -
generatorTrends(
int id, GeneratorTrend arg, {TrendTimeArg? t}) → GeneratorTrendsRoute
Constants
- debug → const RootAppRoute
- Root app route that should be supported by the route parser.
- debugChild → const ChildAppRoute
- fleet → const FleetRoute
- generatorAddition → const RootAppRoute
- notFound → const RootAppRoute
- notifications → const RootAppRoute
- profile → const RootAppRoute
- profileCompany → const ChildAppRoute
- profileResources → const ChildAppRoute
- profileTeam → const ChildAppRoute
- profileTermsAndConditions → const ChildAppRoute
-
values
→ const List<
AppRoute>