RouteState class
Manages the current route path as a reactive signal.
The RouteState class allows navigation by updating the path signal, which can be observed by reactive components to respond to route changes.
Example:
final route = RouteState();
effect(() {
print('Current path: ${route.path.value}');
});
route.go('/home'); // Triggers the effect and prints "Current path: /home"
Constructors
Properties
Methods
-
go(
String newPath) → void - Navigates to a new route by updating the path signal.
-
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