getFavouriteMessages method

  1. @override
Future getFavouriteMessages()
override

Implementation

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