unblockUser method

  1. @override
Future<bool?> unblockUser(
  1. String userJID
)
override

Implementation

@override
Future<bool?> unblockUser(String userJID) async {
  //unBlockUser
  bool? userBlockResponse;
  try {
    userBlockResponse = await mirrorFlyMethodChannel
        .invokeMethod<bool>('un_block_user', {"userJID": userJID});
    debugPrint("Un-Blocked Response ==> $userBlockResponse");
    return userBlockResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}