dispose method

  1. @override
void dispose()
override

Cancels websocket stream subscriptions and disposes localStorage

Implementation

@override
void dispose() {
  localStorage.dispose();
  callbacks = ChatwootCallbacks();
  _subscriptions.forEach((subs) {
    subs.cancel();
  });
}