buildIcon method
Implementation
@override
Widget buildIcon(BuildContext context) {
late Widget icon;
if (isFavorite) {
icon = _getFilledHeartIcon(context);
} else {
icon = _getHollowHeartIcon(context);
}
return icon;
}
@override
Widget buildIcon(BuildContext context) {
late Widget icon;
if (isFavorite) {
icon = _getFilledHeartIcon(context);
} else {
icon = _getHollowHeartIcon(context);
}
return icon;
}