NikuIconButton constructor

NikuIconButton(
  1. IconData? icon, {
  2. Key? key,
  3. double? iconSize,
  4. VisualDensity? visualDensity,
  5. NikuEdgeInsets? padding,
  6. AlignmentGeometry? alignment,
  7. double? splashRadius,
  8. Color? color,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. Color? highlightColor,
  12. Color? splashColor,
  13. Color? disabledColor,
  14. void onPressed()?,
  15. MouseCursor? mouseCursor,
  16. FocusNode? focusNode,
  17. bool? autofocus,
  18. String? tooltip,
  19. bool? enableFeedback,
  20. NikuBoxConstraints? constraints,
  21. _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();
}