dispose method
Closes the underlying stream controller and releases resources.
Must be called when this notifier is no longer needed. Subsequent calls to notify are silently ignored after disposal.
Implementation
Future<void> dispose() async {
await _controller.close();
}