FIcon.raw constructor

const FIcon.raw({
  1. required ValueWidgetBuilder<FIconStyle> builder,
  2. Widget? child,
  3. Key? key,
})

Creates a FIcon from a ValueWidgetBuilder.

To access widget-specific data, i.e. FButtonData inside a FButton:

FButton.icon(
  icon: FIcon.raw(
    builder: (context, style, _) {
      final data = FButtonData.of(context);
      final someWidget = ... // Create someWidget using data here
      return someWidget;
    },
);

Implementation

const factory FIcon.raw({required ValueWidgetBuilder<FIconStyle> builder, Widget? child, Key? key}) = _BuilderIcon;