logoutOfChatSDK method

  1. @override
Future logoutOfChatSDK()
override

Implementation

@override
Future<dynamic> logoutOfChatSDK() async {
  //logout
  dynamic logoutResponse;
  try {
    logoutResponse =
        await mirrorFlyMethodChannel.invokeMethod('logoutOfChatSDK');
    debugPrint("logoutResponse ==> $logoutResponse");
    return logoutResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}