GlobalNavigationStack<AppTabType> class

Navigation stack implementation for global navigation hisrory

Inheritance

Constructors

Properties

hashCode int
The hash code for this object.
no setterinherited
routeStackBuilder List<UIRouteModel> Function()
Map of all routes that are currently active in tabs
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<UIRouteModel>
no setter
stackStream Stream<List<UIRouteModel>>
no setter

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
toString() String
A string representation of this object.
inherited

Operators

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