FButton.icon constructor
FButton.icon({
- required VoidCallback? onPress,
- required Widget child,
- FButtonStyle style = Variant.outline,
- VoidCallback? onLongPress,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - Key? key,
Creates a FButton that contains only an icon.
child
is wrapped in FIconStyle, and therefore works with FIcons.
Implementation
FButton.icon({
required this.onPress,
required Widget child,
this.style = Variant.outline,
this.onLongPress,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
super.key,
}) : child = IconContent(child: child);