Widget.iconButton constructor Null safety

const Widget.iconButton(
  1. {Key? key,
  2. double? iconSize,
  3. VisualDensity? visualDensity,
  4. EdgeInsets? padding,
  5. Alignment? alignment,
  6. double? splashRadius,
  7. Color? color,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. Color? highlightColor,
  11. Color? splashColor,
  12. Color? disabledColor,
  13. required Callback onPressed,
  14. MouseCursor? mouseCursor,
  15. @Default(false) bool autofocus,
  16. String? tooltip,
  17. bool? enableFeedback,
  18. BoxConstraints? constraints,
  19. bool? isSelected,
  20. Widget? selectedIcon,
  21. required Widget icon}
)

Implementation

const factory Widget.iconButton({
  Key? key,
  double? iconSize,
  VisualDensity? visualDensity,
  EdgeInsets? padding,
  Alignment? alignment,
  double? splashRadius,
  Color? color,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  Color? splashColor,
  Color? disabledColor,
  required Callback onPressed,
  MouseCursor? mouseCursor,
  @Default(false) bool autofocus,
  String? tooltip,
  bool? enableFeedback,
  BoxConstraints? constraints,
  bool? isSelected,
  Widget? selectedIcon,
  required Widget icon,
}) = IconButton;