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});
    LogMessage.d("Blocked Response ", " $userBlockResponse");
    return userBlockResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}