detach method
Implementation
Future<void> detach() async {
for (final s in _subs) {
await s.cancel();
}
_subs.clear();
_callListeners.forEach((id, off) => agent.call(id)?.removeListener(off));
_callListeners.clear();
}
Future<void> detach() async {
for (final s in _subs) {
await s.cancel();
}
_subs.clear();
_callListeners.forEach((id, off) => agent.call(id)?.removeListener(off));
_callListeners.clear();
}