completeWithFirst method
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,
);
Evaluates all registered callbacks and returns the first result.
FutureOr<T> completeWithFirst() => completeWith<T>(
(r) => r is Future<List<T>> ? r.then((e) => e.first) : r.first,
);