NikuIconButton.tonal constructor

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

Implementation

factory NikuIconButton.tonal(
  IconData icon, {
  Key? key,
  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,
}) {
  return NikuIconButton(
    icon,
    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: _NikuIconButtonVariant.filledTonal,
  );
}