getMessageOfId method

  1. @override
Future getMessageOfId(
  1. String mid
)
override

Implementation

@override
Future<dynamic> getMessageOfId(String mid) async {
  dynamic response;
  try {
    response = await mirrorFlyMethodChannel
        .invokeMethod('getMessageOfId', {"mid": mid});
    // debugPrint("response ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}