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

RouteState()

Properties

hashCode int
The hash code for this object.
no setterinherited
path Signal<String>
The current route path as a reactive Signal.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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