FButton.icon constructor
FButton.icon({
- required VoidCallback? onPress,
- required Widget child,
- FBaseButtonStyle style = Variant.outline,
- VoidCallback? onLongPress,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - ValueChanged<
Set< ? onStateChange,WidgetState> > - bool selected = false,
- Key? key,
Creates a FButton that contains only an icon.
child
is wrapped in IconThemeData.
Implementation
FButton.icon({
required this.onPress,
required Widget child,
this.style = Variant.outline,
this.onLongPress,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onStateChange,
this.selected = false,
super.key,
}) : child = IconContent(child: child);