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
Annotations
  • @sealed

Constructors

PPageState()

Properties

events Stream<PageEvent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
pageStack PageStack?
getter/setter pairinherited
path → P?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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