OpenWFontAwesome constructor

OpenWFontAwesome({
  1. Key? key,
  2. required BuildContext context,
  3. required dynamic nodeState,
  4. required String icon,
  5. required FSize width,
  6. required FFill fill,
})

Returns a Icon widget in Teta

Implementation

OpenWFontAwesome({
  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,
          faIconNameMapping[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,
            ),
      );