updateFavouriteStatus method
Implementation
@override
Future<dynamic> updateFavouriteStatus(String messageID, String chatUserJID, bool isFavourite, String chatType) async {
//favouriteMessage
dynamic favResponse;
try {
favResponse = await mirrorFlyMethodChannel.invokeMethod('updateFavouriteStatus', {
"messageID": messageID,
"chatUserJID": chatUserJID,
"isFavourite": isFavourite,
"chatType": chatType,
});
LogMessage.d("Favourite Msg Response ", " $favResponse");
return favResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}