TabNavigationStack<AppTabType> class

Navigation stack implementation for tab navigation hisrory

Inheritance

Constructors

TabNavigationStack.new({required Map<AppTabType, List<UIRouteModel>> tabRouteStackBuilder()})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack Map<AppTabType, List<UIRouteModel>>
no setter
stackStream Stream<Map<AppTabType, List<UIRouteModel>>>
no setter
tabRouteStackBuilder 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 dynamic CurrentTab is always null for global navigation
override
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 dynamic returns true if object is not present in stack
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop(AppTabType? tab) → void
Pops latest route from stack
override
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 dynamic CurrentTab is always null for global navigation
override
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
override
reset() → void
toString() String
A string representation of this object.
inherited

Operators

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