GoRouterNavigatorProvider class

NavigationProvider implementation for GoRouter Uses RouterDelegate pattern for tracking route changes

Inheritance

Properties

currentLocation String?
Current location (full path)
no setter
currentRoute String?
Current route name/path
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Whether this provider is currently active and tracking navigation
no setteroverride
Stream of navigation events from this provider
no setteroverride
Get the NavigatorObserver for GoRouter
no setter
previousLocation String?
Previous location (full path)
no setter
previousRoute String?
Previous route name/path
no setteroverride
providerName String
Get the provider name for debugging/logging
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachToRouter(dynamic router) → void
Attach to RouterDelegate to listen for navigation changes Can accept either a RouterDelegate directly or a GoRouter object
detachFromRouter() → void
Detach from current RouterDelegate
dispose() Future<void>
Dispose of the navigation provider and clean up resources
override
initialize() Future<void>
Initialize the navigation provider
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateRoute(String location, {NavigationAction? action}) → void
Manual navigation update for external integrations This can be called by GoRouter integration code to notify of route changes

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance GoRouterNavigatorProvider
no setter