CellRouterController class
A thin controller over a GoRouter, returned by useCellRouter.
Navigation methods delegate one-to-one to the underlying router's
go / push / replace / pop; state is the mirrored route
state at the time the controller was obtained (reactive via the
hook).
Constructors
- CellRouterController({required GoRouter router, required CellRouterState state})
-
Creates the controller.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- router → GoRouter
-
The router to navigate with.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → CellRouterState
-
The current route state.
final
Methods
-
go(
String location, {Object? extra}) → void -
Navigates to
location, replacing the current entry. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop(
[Object? result]) → void - Pops the current route.
-
push(
String location, {Object? extra}) → void -
Pushes
locationonto the stack. -
replace(
String location, {Object? extra}) → void -
Replaces the current entry with
location. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited