ActivityRoute class
Named page with relative children, an optional guard and a custom Page.
Use :id segments for parameters; top-level paths start with /.
- Inheritance
-
- Object
- ActivityRouteBase
- ActivityRoute
Constructors
-
ActivityRoute({required String path, String? name, Widget builder(BuildContext, ActivityRouteState)?, Page pageBuilder(BuildContext, ActivityRouteState)?, ActivityRedirect? redirect, List<
ActivityRouteBase> routes = const [], FutureOr<bool> onExit(BuildContext, ActivityRouteState)?, bool caseSensitive = true})
Properties
- builder → Widget Function(BuildContext, ActivityRouteState)?
-
final
- caseSensitive → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
final
-
onExit
→ FutureOr<
bool> Function(BuildContext, ActivityRouteState)? -
final
- pageBuilder → Page Function(BuildContext, ActivityRouteState)?
-
final
-
finalinherited
- path → String
-
final
- redirect → ActivityRedirect?
-
finalinherited
-
routes
→ List<
ActivityRouteBase> -
finalinherited
- 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