ShellRouteData class abstract
A class to represent a ShellRoute in Type-safe routing.
Constructors
- ShellRouteData()
-
Allows subclasses to have
const
constructors.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
builder(
BuildContext context, GoRouterState state, ) → Widget - builder is used to build the widget
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pageBuilder(
BuildContext context, GoRouterState state, ) → Page< void> - pageBuilder is used to build the page
-
redirect(
BuildContext context, GoRouterState state) → FutureOr< String?> - An optional redirect function for this route.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
$route<
T extends ShellRouteData> ({required T factory(GoRouterState), List< RouteBase> routes = const <RouteBase>[], List<NavigatorObserver> ? observers, String? restorationScopeId}) → ShellRoute - A helper function used by generated code.