Widget.inkWell constructor Null safety

const Widget.inkWell(
  1. {Key? key,
  2. Widget? child,
  3. Callback? onTap,
  4. Callback? onDoubleTap,
  5. Callback? onLongPress,
  6. Callback? onTapCancel,
  7. BoolSelectionCallback? onHighlightChanged,
  8. BoolSelectionCallback? onHover,
  9. MouseCursor? mouseCursor,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. Color? highlightColor,
  13. MaterialStateProperty? overlayColor,
  14. Color? splashColor,
  15. double? radius,
  16. BorderRadius? borderRadius,
  17. ShapeBorder? customBorder,
  18. @Default(true) bool? enableFeedback,
  19. @Default(false) bool excludeFromSemantics,
  20. @Default(true) bool canRequestFocus,
  21. BoolSelectionCallback? onFocusChange,
  22. @Default(false) bool autofocus}
)

Implementation

const factory Widget.inkWell({
  Key? key,
  Widget? child,
  Callback? onTap,
  Callback? onDoubleTap,
  Callback? onLongPress,
  Callback? onTapCancel,
  BoolSelectionCallback? onHighlightChanged,
  BoolSelectionCallback? onHover,
  MouseCursor? mouseCursor,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  MaterialStateProperty? overlayColor,
  Color? splashColor,
  double? radius,
  BorderRadius? borderRadius,
  ShapeBorder? customBorder,
  @Default(true) bool? enableFeedback,
  @Default(false) bool excludeFromSemantics,
  @Default(true) bool canRequestFocus,
  BoolSelectionCallback? onFocusChange,
  @Default(false) bool autofocus,
}) = InkWell;