AFNavigatePopAction class

Action that navigates on screen up in the route, discarding the current leaf route.

Important: If you want to navigate up several screens, use AFNavigatePopNAction or AFNavigatePopToAction rather than dispatching this action multiple times. Failing to do so can cause cases where your AFRouteParam is null in widgets that are transitioning/animating off the screen.

If you want to test for the presence of a pop action in response to an event in prototype mode, you can make worksInSingleScreenTest false. By default, pop actions navigate you out of a prototype screen in test mode.

Inheritance

Constructors

AFNavigatePopAction({AFID? id, dynamic returnData, bool worksInSingleScreenTest = false})

Properties

children List<AFRouteParam>?
finalinherited
executeBefore AFAsyncQuery?
finalinherited
executeDuring AFAsyncQuery?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id AFID?
finalinherited
key String
no setterinherited
param AFRouteParam
finalinherited
returnData → dynamic
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenId AFScreenID
no setterinherited
transitionsBuilder RouteTransitionsBuilder?
finalinherited
worksInSingleScreenTest bool
This flag is used so that the standard back button can work in single screen test prototypes, but generally navigation does not
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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