blockUser method

  1. @override
Future blockUser(
  1. String userJID
)
override

Implementation

@override
Future<dynamic> blockUser(String userJID) async {
  dynamic userBlockResponse;
  try {
    userBlockResponse = await mirrorFlyMethodChannel
        .invokeMethod('block_user', {"userJID": userJID});
    debugPrint("Blocked Response ==> $userBlockResponse");
    return userBlockResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}