UniqueCaller<R> class

Ensures that a call is executed only 1 per time.

Constructors

UniqueCaller(FutureOr<R?> function(), {Object? identifier, StackTrace? stackTraceIdentifier, void onDuplicatedCall(UniqueCaller<R> caller)?})

Properties

function FutureOr<R?> Function()
final
hashCode int
The hash code for this object.
no setterinherited
identifier Object
no setter
onDuplicatedCall → void Function(UniqueCaller<R> caller)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() → R?
callAsync() Future<R?>
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

Static Properties

calling List<Future>
no setter

Static Methods

getCallFuture<R>(Object identifier) Future<R?>
stackTraceIdentifier([int stackOffset = 0]) String