completeWithLast method

FutureOr<T> completeWithLast()

Evaluates all registered callbacks and returns the last result.

Implementation

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