Router class
Router component.
Constructors
-
Router({required List<
RouteBase> routes, RouterComponentBuilder? errorBuilder, RouterRedirect? redirect, int redirectLimit = 5})
Properties
- errorBuilder → RouterComponentBuilder?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- redirect → RouterRedirect?
-
final
- redirectLimit → int
-
final
-
routes
→ List<
RouteBase> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → Element -
Creates a
StatefulElement
to manage this component's location in the tree.inherited -
createState(
) → State< StatefulComponent> - Creates the mutable state for this component at a given location in the tree.
-
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
-
maybeOf(
BuildContext context) → RouterState? -
of(
BuildContext context) → RouterState