NikuButton.tonalIcon constructor
NikuButton.tonalIcon(
- Widget label,
- Widget icon, {
- Key? key,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- NikuButtonStyle? style,
- FocusNode? focusNode,
- bool? autofocus,
- Clip? clipBehavior,
- bool enable = true,
Implementation
factory NikuButton.tonalIcon(
Widget label,
Widget icon, {
Key? key,
VoidCallback? onPressed,
VoidCallback? onLongPress,
NikuButtonStyle? style,
FocusNode? focusNode,
bool? autofocus,
Clip? clipBehavior,
bool enable = true,
}) =>
NikuButton(
SizedBox.shrink(),
key: key,
type: NikuButtonType.Tonal,
onPressed: onPressed,
onLongPress: onLongPress,
style: style,
focusNode: focusNode,
clipBehavior: clipBehavior,
label: label,
icon: icon,
enable: enable,
);