reportUserOrMessages method

  1. @override
Future<bool?> reportUserOrMessages(
  1. String jid,
  2. String type,
  3. String? messageId
)
override

Implementation

@override
Future<bool?> reportUserOrMessages(
    String jid, String type, String? messageId) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>(
        'reportUserOrMessages',
        {"jid": jid, "chat_type": type, "selectedMessageID": messageId});
    debugPrint("report Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    return false;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    return false;
  }
}