EventPool<T> class
Helper guarding synchronized access for processing T
objects.
Constructors
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
-
add(
Object object) → void -
Adds the provided
object
to the list of processed objects. -
dispose(
) → void - Disposes this EventPool.
-
lockedWith(
T tag, Object? value) → bool -
Indicates whether an object with the provided
tag
andvalue
is being executed. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processed(
Object object) → bool -
Indicates whether the provided
object
has been processed, popping it. -
protect(
T tag, Future< void> callback(), {FutureOr<bool> repeat()?, List<Object?> values = const []}) → Future<void> -
Executes the provided
callback
, locking its execution with the providedtag
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited