KeepLatestResponseService class
A service that executes asynchronous operations and ensures that only the results of the latest operation are returned.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processLatestOperation<
T> (Future< T> action()) → Future<T?> - Executes the latest operation and returns its result. Only the results of the most recent operation are returned, discarding any previous ongoing operations.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited