InkWell constructor

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

Creates an ink well.

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

The mouseCursor, enableFeedback, and excludeFromSemantics arguments must not be null.


const InkWell({
  Key key,
  Widget child,
  GestureTapCallback onTap,
  GestureTapCallback onDoubleTap,
  GestureLongPressCallback onLongPress,
  GestureTapDownCallback onTapDown,
  GestureTapCancelCallback onTapCancel,
  ValueChanged<bool> onHighlightChanged,
  ValueChanged<bool> onHover,
  MouseCursor mouseCursor,
  Color focusColor,
  Color hoverColor,
  Color highlightColor,
  MaterialStateProperty<Color> overlayColor,
  Color splashColor,
  InteractiveInkFeatureFactory splashFactory,
  double radius,
  BorderRadius borderRadius,
  ShapeBorder customBorder,
  bool enableFeedback = true,
  bool excludeFromSemantics = false,
  FocusNode focusNode,
  bool canRequestFocus = true,
  ValueChanged<bool> onFocusChange,
  bool autofocus = false,
}) : super(
  key: key,
  child: child,
  onTap: onTap,
  onDoubleTap: onDoubleTap,
  onLongPress: onLongPress,
  onTapDown: onTapDown,
  onTapCancel: onTapCancel,
  onHighlightChanged: onHighlightChanged,
  onHover: onHover,
  mouseCursor: mouseCursor,
  containedInkWell: true,
  highlightShape: BoxShape.rectangle,
  focusColor: focusColor,
  hoverColor: hoverColor,
  highlightColor: highlightColor,
  overlayColor: overlayColor,
  splashColor: splashColor,
  splashFactory: splashFactory,
  radius: radius,
  borderRadius: borderRadius,
  customBorder: customBorder,
  enableFeedback: enableFeedback ?? true,
  excludeFromSemantics: excludeFromSemantics ?? false,
  focusNode: focusNode,
  canRequestFocus: canRequestFocus ?? true,
  onFocusChange: onFocusChange,
  autofocus: autofocus ?? false,