UniqueCaller<R> constructor

UniqueCaller<R>(
  1. FutureOr<R?> function(), {
  2. Object? identifier,
  3. StackTrace? stackTraceIdentifier,
  4. void onDuplicatedCall(
    1. UniqueCaller<R> caller
    )?,
})

Implementation

UniqueCaller(this.function,
    {Object? identifier,
    StackTrace? stackTraceIdentifier,
    this.onDuplicatedCall})
    : _identifier = _IdentifierWrapper(identifier ??
          stackTraceIdentifier?.toString() ??
          UniqueCaller.stackTraceIdentifier());