close method

  1. @override
  2. @nonVirtual
Future<void> close()
override

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);
}