builder property
A builder function that constructs the widget (e.g., Icon, MutableText) displayed inside the IconButton for the current value.
Called with the BuildContext and current T
value, allowing dynamic
rendering based on the state. This enables integration with themed components
like those from ArcaneTheme.
Example: (context, value) => Icon(Icons.star if value == true else Icons.star_border)
Implementation
final Widget Function(BuildContext, T) builder;