PPageStateMixin<P extends PagePath, R> mixin
Makes the stateful objects that back your screens aware of the page stacking.
P
is the base class for all app's paths.
R
is the result returned when the page pops.
- Mixin Applications
Properties
Methods
-
didPopNext(
AbstractPage page, PagePopEvent event) → void - Override this to use the result of a closed modal screen.
-
dispose(
) → Future< void> -
emitEvent(
PageEvent event) → void -
emitPathChanged(
) → void -
emitPathChangedIfAny(
) → void - Checks if this BLoC has a non-null current path and emits PagePathChangedEvent if so.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBackPressed(
) → Future< BackPressedResult> - Called when Android back button is pressed with this page active.
-
pop(
[R? data]) → void -
Emits PagePopEvent for PageStack to remove and dispose
the current page.
data
is passed to the new topmost PageStateMixin and can be used as the modal dialog result. -
setStateMap(
Map< String, dynamic> state) → void - Override this to recover the state during navigation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited