logout method

  1. @override
Future<void> logout()
override

Erases session token, visitor token, unread count, pending messages, and the push registration — call on sign-out so the next person on a shared device never sees the previous user's conversation.

Implementation

@override
Future<void> logout() {
  return methodChannel.invokeMethod<void>('logout');
}