AFRouteStateSegments class

A list of active route segements, and a list of priorSegements which are sometimes referenced during navigate pop transitions.

Annotations

Constructors

AFRouteStateSegments.new({required List<AFRouteSegment> prior, required List<AFRouteSegment> active})
const

Properties

active List<AFRouteSegment>
final
first AFRouteSegment
no setter
hashCode int
The hash code for this object.
no setterinherited
hasStartupWrapper bool
no setter
isEmpty bool
no setter
isNotEmpty bool
no setter
last AFRouteSegment
no setter
length int
no setter
popCountToRoot int
no setter
prior List<AFRouteSegment>
Tracks the segement which was just popped off the route.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanTestRoute() AFRouteStateSegments
copyActive() List<AFRouteSegment>
Utility to create a copy of the current route, so that it can be manipulated.
copyWith({List<AFRouteSegment>? active, List<AFRouteSegment>? prior}) AFRouteStateSegments
exitTest() AFRouteStateSegments
Pops the route until we get to the first afib test screen.
findSegmentFor(AFID screen, {required bool includePrior}) AFRouteSegment?
Returns the segment in the current route associated with the specified screen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop(dynamic childReturn) AFRouteStateSegments
Remove the leaf element from the route, returning back to the parent screen.
popAndPushNamed(AFScreenID screen, AFRouteParam param, List<AFRouteParam>? children, AFCreateDefaultChildParamDelegate? createDefaultChildParam) AFRouteStateSegments
Removes the current leaf from the route, and adds the specified screen and data in its place.
popCountToScreen(AFScreenID screen) int
popN(int popCount, dynamic childReturn) AFRouteStateSegments
Remove the leaf element from the route, returning back to the parent screen.
popTo(AFScreenID screen, dynamic childReturn) AFRouteStateSegments
Remove the leaf element from the route, returning back to the parent screen.
pushNamed(AFRouteParam param, List<AFRouteParam>? children, AFCreateDefaultChildParamDelegate? createDefaultChildParam) AFRouteStateSegments
Adds a new screen/data below the current screen in the route.
replaceAll(AFRouteParam param, List<AFRouteParam>? children, AFCreateDefaultChildParamDelegate? createDefaultChildParam) AFRouteStateSegments
Removes all existing segments in the route, and adds back the specified screen/data.
toString() String
A string representation of this object.
override
updateRouteSegment(AFID screen, AFRouteSegment revisedSeg) AFRouteStateSegments

Operators

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