NikuIconButton.widget constructor
NikuIconButton.widget(
- Widget? child, {
- void onPressed()?,
- double? iconSize,
- VisualDensity? visualDensity,
- NikuEdgeInsets? padding,
- AlignmentGeometry? alignment,
- double? splashRadius,
- Color? focusColor,
- Color? hoverColor,
- Color? color,
- Color? splashColor,
- Color? highlightColor,
- Color? disabledColor,
- MouseCursor? mouseCursor,
- FocusNode? focusNode,
- bool? autofocus,
- String? tooltip,
- bool? enableFeedback,
- NikuBoxConstraints? constraints,
- Key? key,
- _NikuIconButtonVariant? variant,
Implementation
factory NikuIconButton.widget(
Widget? child, {
void Function()? onPressed,
double? iconSize,
VisualDensity? visualDensity,
NikuEdgeInsets? padding,
AlignmentGeometry? alignment,
double? splashRadius,
Color? focusColor,
Color? hoverColor,
Color? color,
Color? splashColor,
Color? highlightColor,
Color? disabledColor,
MouseCursor? mouseCursor,
FocusNode? focusNode,
bool? autofocus,
String? tooltip,
bool? enableFeedback,
NikuBoxConstraints? constraints,
Key? key,
_NikuIconButtonVariant? variant,
}) =>
NikuIconButton(
Icons.home,
key: key,
iconSize: iconSize,
visualDensity: visualDensity,
padding: padding,
alignment: alignment,
splashRadius: splashRadius,
color: color,
focusColor: focusColor,
hoverColor: hoverColor,
highlightColor: highlightColor,
splashColor: splashColor,
disabledColor: disabledColor,
onPressed: onPressed,
mouseCursor: mouseCursor,
focusNode: focusNode,
autofocus: autofocus,
tooltip: tooltip,
enableFeedback: enableFeedback,
constraints: constraints,
variant: variant,
)..child = child;