completeWithFirst method

FutureOr<T> completeWithFirst()

Evaluates all registered callbacks and returns the first result.

Implementation

FutureOr<T> completeWithFirst() => completeWith<T>(
      (r) => r is Future<List<T>> ? r.then((e) => e.first) : r.first,
    );