NavigationNotifier<T> class
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
canPop()
→ bool
-
-
containsPage<E extends RoutebornPage>()
→ bool
-
-
dispose()
→ void
-
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
findNestedNavKeyWithPages(BuildContext context, {T? branch})
→ Tuple5<GlobalKey<NavigatorState>, String, T, List<RoutebornPage>, Object?>
-
The second return parameter is the AppPage type's name.
This is purposed to be called from
NestedRouterDelegate
.
-
getNavigationStack(BuildContext context)
→ NavigationStack<T>
-
-
getNestingBranch(BuildContext context, {bool inChildNavigator = false})
→ T
-
-
isCurrentPage<E extends RoutebornPage>()
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
popPage(BuildContext context)
→ void
-
-
popUntil(BuildContext context, bool predicate(RoutebornPage page))
→ void
-
Pops pages from the current stack until the predicate returns
true
.
-
pushPage(BuildContext context, AppPageNode<T> page, {bool toParent = false})
→ void
-
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
replaceAllWith(BuildContext context, List<AppPageNode<T>> pages, {bool inChildNavigator = false})
→ void
-
-
replaceLastWith(BuildContext context, AppPageNode<T> page)
→ void
-
-
replaceRootStackWith(List<AppPageNode<T>> pages)
→ void
-
-
setNestingBranch(BuildContext context, T branch, {bool inChildNavigator = false, bool resetBranchStack = false, Object? branchParam})
→ void
-
Sets the active nesting branch of the closest parent crossroad.
-
toString()
→ String
-
A string representation of this object.
inherited