close method
override
Signals to the group that the caller is done adding futures, and so future should fire once all added futures have completed.
Implementation
void close() {
_closed = true;
if (_pending != 0) return;
if (_completer.isCompleted) return;
_completer.complete(_values);
}