favoriteAsset method
Implementation
Future<bool> favoriteAsset({
required AssetEntity entity,
required bool favorite,
}) async {
final result = await _plugin.favoriteAsset(entity.id, favorite);
if (result) {
entity.isFavorite = favorite;
}
return result;
}