IconButton constructor Null safety

const 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. bool autofocus,
  16. String? tooltip,
  17. bool? enableFeedback,
  18. BoxConstraints? constraints,
  19. bool? isSelected,
  20. Widget? selectedIcon,
  21. required Widget icon}
)

Implementation

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