NavigationCrossroad<T> class

Generic parameter T is a type for annotating nested branches. Most common type is an enum.

Constructors

Create the default navigation crossroad from NestedBranches defined in routes. The default is that every branch stack has the first AppPageNode and the active branch is based on the NestedBranches.defaultBranch.
factory

Properties

activeBranch → T
This is the currently selected branch.
final
activeBranchStack NavigationStack<T>
no setter
availableBranches UnmodifiableMapView<T, NavigationStack<T>>
final
branchParam Object?
This branch param is used when a single Router is covering all the branches
final
branchParams UnmodifiableMapView<T, Object?>
This is used when we have a Router per branch.
latefinal
hashCode int
The hash code for this object.
no setterinherited
This is used in case we want a single Router covering all the branches.
final
This is used when we want single Router per branch.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({T? activeBranch, Map<T, NavigationStack<T>>? availableBranches, bool resetBranch = false, Object? branchParam}) NavigationCrossroad<T>
copyWithActiveBranchStack(NavigationStack<T> stack) NavigationCrossroad<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushToActiveBranch(AppPageNode<T> page) NavigationCrossroad<T>
toString() String
A string representation of this object.
override

Operators

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