close method
Releases resources (onClose) and closes changes. A repeated call closes nothing again and returns the result of the first.
Implementation
@override
@nonVirtual
Future<void> close() {
if (_closing case final closing?) return closing;
return _closing = Future.sync(onClose).whenComplete(_changes.close);
}