PPageState<P extends PagePath, R> class
The default implementation of PPageStateMixin.
Use this when you need this mixin to emit page events but have no state.
This is a stub that you only use if you do not need to create your own
class. The moment you need your own class, do not extend this
but create anything with
PPageStateMixin.
Do not use this class in interfaces because this will make switching to other classes harder when you get to need custom states.
- Mixed in types
-
- PPageStateMixin<
P, R>
- PPageStateMixin<
- Annotations
-
- @sealed
Constructors
Properties
Methods
-
didPopNext(
AbstractPage page, PagePopEvent event) → void -
Override this to use the result of a closed modal screen.
inherited
-
dispose(
) → Future< void> -
inherited
-
emitEvent(
PageEvent event) → void -
inherited
-
emitPathChanged(
) → void -
inherited
-
emitPathChangedIfAny(
) → void -
Checks if this BLoC has a non-null current path
and emits PagePathChangedEvent if so.
inherited
-
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.
inherited
-
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.inherited -
setStateMap(
Map< String, dynamic> state) → void -
Override this to recover the state during navigation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited