OpenWIcon constructor
OpenWIcon({
- Key? key,
- required BuildContext context,
- required dynamic nodeState,
- required String icon,
- required FSize width,
- required FFill fill,
Returns a Icon widget in Teta
Implementation
OpenWIcon({
super.key,
required final BuildContext context,
required final WidgetState nodeState,
required final String icon,
required final FSize width,
required final FFill fill,
}) : super(
overrider.executeIcon(context, nodeState, MdiIcons.fromString(icon)),
size: width.get(
forPlay: context.watch<TreeState>().forPlay,
deviceType: context.watch<TreeState>().deviceType,
deviceInfo: context.watch<TreeState>().deviceInfo,
context: context,
isWidth: true,
),
color: overrider
.executeColor(
context,
nodeState,
fill,
)
.getColor(
context
.watch<TreeState>()
.variables
.whereType<ColorVariableEntity>()
.toList(),
context.watch<TreeState>().colorStyles,
context.watch<TreeState>().theme,
),
);