close method
Stops listening for the events of the service, and closes its streams.
Implementation
@override
Future close() async {
await _subscription?.cancel();
_subscription = null;
await _onAllEvents.close();
await _onCreated.close();
await _onIndexed.close();
await _onModified.close();
await _onRead.close();
await _onRemoved.close();
await _onUpdated.close();
}