logout method

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

Logout

Implementation

@override
Future<void> logout() async {
  try {
    await super.logout();
    ChatUIKitContext.instance.currentUserId = null;
    ChatUIKitProvider.instance.clearAllCache();
  } catch (e) {
    rethrow;
  }
}