PPageStatefulBloc<P extends PagePath, S, R> class abstract

A PPageStateMixin implementation for your pages that uses a simple custom BLoC implementation.

P is the base class for all app's page paths. R is the result returned when the page pops. S is the state class of this BLoC.

Mixed in types

Constructors

PPageStatefulBloc()

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
states Stream<S>
no setter

Methods

createState() → S
Override this to create your BLoC's state.
didPopNext(AbstractPage page, PagePopEvent event) → void
Override this to use the result of a closed modal screen.
inherited
dispose() Future<void>
override
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
emitState() → void
Creates and emits the current state of this BLoC.
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