NavigationState extension

Navigation state management

on

Properties

currentLocation String

Available on BuildContext, provided by the NavigationState extension

Get current location safely
no setter
currentRouteName String?

Available on BuildContext, provided by the NavigationState extension

Get current route name safely
no setter

Methods

canPopSafely() bool

Available on BuildContext, provided by the NavigationState extension

Check if can pop safely
isOnNamedRoute(String name) bool

Available on BuildContext, provided by the NavigationState extension

Check if currently on named route
isOnRoute(RoutePaths route) bool

Available on BuildContext, provided by the NavigationState extension

Check if currently on route
popOrHome() → void

Available on BuildContext, provided by the NavigationState extension

Safe navigation home