NikuIconButton.widget constructor

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