NavigationBinding class abstract
Navigation binding for platform-specific routing.
Web: Uses History API Server: No-op (routes are matched from request path) Flutter: Uses Navigator
- Implementers
Constructors
Properties
- currentHash → String
-
Gets current hash/fragment.
no setter
- currentPath → String
-
Gets the current path from the platform.
no setter
-
currentQuery
→ Map<
String, String> -
Gets current query parameters.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addPopStateListener(
void listener(String path)) → void - Listen for navigation changes from the platform (e.g., back button).
-
back(
) → void - Go back in history.
-
forward(
) → void - Go forward in history.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
push(
String path) → void - Push a new path to navigation stack.
-
removePopStateListener(
void listener(String path)) → void - Remove a pop state listener.
-
replace(
String path) → void - Replace the current path.
-
restoreScrollPosition(
) → void - Restore scroll position for current path.
-
saveScrollPosition(
) → void - Save current scroll position (for restoration on back/forward).
-
scrollToElement(
String elementId, {bool smooth = true}) → void - Scroll to an element by ID (for hash navigation).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited