InkWell constructor Null safety

const InkWell(
  1. {Key? key,
  2. Widget? child,
  3. GestureTapCallback? onTap,
  4. GestureTapCallback? onDoubleTap,
  5. GestureLongPressCallback? onLongPress,
  6. GestureTapDownCallback? onTapDown,
  7. GestureTapUpCallback? onTapUp,
  8. GestureTapCallback? onTapCancel,
  9. ValueChanged<bool>? onHighlightChanged,
  10. ValueChanged<bool>? onHover,
  11. MouseCursor? mouseCursor,
  12. Color? focusColor,
  13. Color? hoverColor,
  14. Color? highlightColor,
  15. MaterialStateProperty<Color?>? overlayColor,
  16. Color? splashColor,
  17. InteractiveInkFeatureFactory? splashFactory,
  18. double? radius,
  19. BorderRadius? borderRadius,
  20. ShapeBorder? customBorder,
  21. bool? enableFeedback = true,
  22. bool excludeFromSemantics = false,
  23. FocusNode? focusNode,
  24. bool canRequestFocus = true,
  25. ValueChanged<bool>? onFocusChange,
  26. bool autofocus = false,
  27. MaterialStatesController? statesController}
)

Creates an ink well.

Must have an ancestor Material widget in which to cause ink reactions.

The enableFeedback, and excludeFromSemantics arguments must not be null.

Implementation

const InkWell({
  super.key,
  super.child,
  super.onTap,
  super.onDoubleTap,
  super.onLongPress,
  super.onTapDown,
  super.onTapUp,
  super.onTapCancel,
  super.onHighlightChanged,
  super.onHover,
  super.mouseCursor,
  super.focusColor,
  super.hoverColor,
  super.highlightColor,
  super.overlayColor,
  super.splashColor,
  super.splashFactory,
  super.radius,
  super.borderRadius,
  super.customBorder,
  bool? enableFeedback = true,
  super.excludeFromSemantics,
  super.focusNode,
  super.canRequestFocus,
  super.onFocusChange,
  super.autofocus,
  super.statesController,
}) : super(
  containedInkWell: true,
  highlightShape: BoxShape.rectangle,
  enableFeedback: enableFeedback ?? true,
);