getAttributeDisplayIcon function
Implementation
Widget getAttributeDisplayIcon(
Attribute attribute, {
required BuildContext context,
bool? isFoodPreferences = false,
double? size,
Color? backgroundColor,
Color? foregroundColor,
}) {
return attribute.getCircledIcon(
backgroundColor:
backgroundColor ??
(isFoodPreferences!
? Theme.of(context).primaryColor
: getAttributeDisplayBackgroundColor(
attribute,
context.extension<SmoothColorsThemeExtension>(),
)),
foregroundColor: foregroundColor,
size: size ?? 32.0,
);
}