NavigationStack<AppTabType> class

Class that holds navigation history for Navigation interactors Contains map of tab stacks and global stack

Constructors

Properties

Global navigation history
latefinal
hashCode int
The hash code for this object.
no setterinherited
routeStack List<UIRouteModel> Function()
List of all routes that are currently active in tabs
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabNavigationStack TabNavigationStack<AppTabType>
Tab navigation history
latefinal
tabRouteStack Map<AppTabType, List<UIRouteModel>> Function()
Map of all routes that are currently active in tabs
final

Methods

addRoute({required dynamic routeName, AppTabType? tab, required UIRouteSettings settings}) → void
Adds specific route to stack Can be screen route, dialog route or bottom sheet route Therefore route name is Object CurrentTab is always null for global navigation
checkUnique({required dynamic routeName, AppTabType? tab, required bool global}) bool
Checks if specific route is already in stack Can be screen route, dialog route or bottom sheet route Therefore route name is Object returns true if object is not present in stack
clearTabNavigationStack() → void
Clears tab navigation stack
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop(AppTabType? currentTab, bool global) → void
Pops latest route from stack
replaceLastRoute({required dynamic routeName, AppTabType? tab, required UIRouteSettings settings}) → void
Replaces latest route in stack Can be screen route, dialog route or bottom sheet route Therefore route name is Object CurrentTab is always null for global navigation
replaceStack({required dynamic routeName, AppTabType? tab, required UIRouteSettings settings}) → void
Replaces whole stack with given route Route can be only screen route therefore routeName defined as RouteNames
toString() String
A string representation of this object.
inherited

Operators

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