Router class
Hash-based router (#/path) — needs no server rewrites, so the app hosts as
pure static files. Holds the current match observable and translates
browser hashchange events into route updates. The matching logic lives in
route_match.dart (DOM-free, unit-tested on the VM).
Constructors
Properties
-
current
→ Observable<
RouteMatch> -
The active route (observable for the shell to render the matching screen).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
patterns
→ List<
String> -
Registered route patterns, most specific first.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
go(
String path) → void -
Navigates to
path(updates the hash, which triggers a route update). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
String path) → void - Replaces the current route without leaving a history entry.
-
start(
) → void -
Begins listening for
hashchangeand emits the initial route. -
stop(
) → void - Stops listening.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited