JObserverDelegate class abstract

Composable observer for the JIntent lifecycle.

Extend it and override only the notifications you need, then register it with JObserver.addObserver. Unlike the static JObserver callbacks, any number of observers can coexist and each one can be removed independently.

Constructors

JObserverDelegate()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEffectEmitted(JEffect effect) → void
A side effect was emitted by a controller.
onIntentCancelled(JIntent<JState> intent) → void
An intent finished after cancellation was requested (JIntent.cancel). It is reported here instead of onIntentDispatched; its work may have been partly skipped and its state updates were ignored.
onIntentDispatched(JIntent<JState> intent) → void
An intent was dispatched and completed successfully.
onIntentDropped(JIntent<JState> intent) → void
A dispatcher discarded an intent without running it, for example JDroppableIntentDispatcher while an intent with the same key runs.
onIntentFailed(JIntent<JState> intent, Object error, StackTrace stackTrace) → void
An intent failed while executing JIntent.onInvoke.
onIntentStarted(JIntent<JState> intent) → void
An intent started executing JIntent.onInvoke.
onStateChanged(JState prev, JState next, JIntent<JState>? origin) → void
State changed from prev to next, optionally via origin.
toString() → String
A string representation of this object.
inherited

Operators

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