NikuIconButton constructor
NikuIconButton(
- IconData? icon, {
- Key? key,
- double? iconSize,
- VisualDensity? visualDensity,
- NikuEdgeInsets? padding,
- AlignmentGeometry? alignment,
- double? splashRadius,
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- void onPressed()?,
- MouseCursor? mouseCursor,
- FocusNode? focusNode,
- bool? autofocus,
- String? tooltip,
- bool? enableFeedback,
- NikuBoxConstraints? constraints,
- _NikuIconButtonVariant? variant,
Implementation
NikuIconButton(
IconData? icon, {
Key? key,
this.iconSize,
this.visualDensity,
this.padding,
this.alignment,
this.splashRadius,
this.color,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.disabledColor,
this.onPressed,
this.mouseCursor,
this.focusNode,
this.autofocus,
this.tooltip,
this.enableFeedback,
this.constraints,
this.variant,
}) : super(key: key) {
child = icon != null ? Icon(icon) : SizedBox.shrink();
}