dispose method
Cancels all active channel and presence stream subscriptions registered by this binding.
Idempotent. Does NOT dispose the underlying client.
await binding.dispose();
Implementation
Future<void> dispose() async {
if (_disposed) return;
_disposed = true;
final subs = List<StreamSubscription<dynamic>>.of(_subs);
_subs.clear();
for (final sub in subs) {
await sub.cancel();
}
}