getFavouriteMessages method

  1. @override
Future<String> getFavouriteMessages()
override

This method is used to get the favourite messages.

Implementation

@override
Future<String> getFavouriteMessages() async {
  String? favResponse;
  try {
    favResponse =
        await mirrorFlyMethodChannel.invokeMethod('get_favourite_messages');
    return convertChatMessagesJsonFromString(favResponse);
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}