dispose method
Cancels websocket stream subscriptions and disposes localStorage
Implementation
@override
void dispose() {
localStorage.dispose();
callbacks = ChatwootCallbacks();
_subscriptions.forEach((subs) {
subs.cancel();
});
}
Cancels websocket stream subscriptions and disposes localStorage
@override
void dispose() {
localStorage.dispose();
callbacks = ChatwootCallbacks();
_subscriptions.forEach((subs) {
subs.cancel();
});
}