dispose method

  1. @override
void dispose(
  1. String path
)
override

Releases any resources (subscriptions, clients) held for path.

Called when the chat page is disposed.

Implementation

@override
void dispose(String path) {
  _listeners.remove(path)?.cancel();
}