JDroppableIntentDispatcher class

Dispatcher that drops an intent while another one with the same key is still running for the same controller.

Useful for actions that must not overlap, such as submit or refresh. The dropped intent is neither queued nor executed, and its returned future completes normally; observers receive onIntentDropped. By default the key is the intent's runtimeType. Intents with different keys run concurrently. Disposal does not interrupt running intents; the controller rejects new ones.

Implemented types

Constructors

JDroppableIntentDispatcher({JIntentKey? keyOf})

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

dispatch<T extends JState>(JIntent<T> intent, JController<T> controller) → Future<void>
Dispatches the given intent to the provided controller.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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