close method

  1. @mustCallSuper
Future<void> close()

Closes the service. Any in-flight update operations will be discarded and further calls to update the service state will result in errors.

Implementation

@mustCallSuper
Future<void> close() async {
  await initComplete;
  _logger.fine('[$name] Closing');
  await _controller.close();
  await _cache?.close();
}