InkResponse constructor

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

Creates an area of a Material that responds to touch.

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

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

Implementation

const InkResponse({
  Key key,
  this.child,
  this.onTap,
  this.onTapDown,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onHighlightChanged,
  this.onHover,
  this.mouseCursor,
  this.containedInkWell = false,
  this.highlightShape = BoxShape.circle,
  this.radius,
  this.borderRadius,
  this.customBorder,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.overlayColor,
  this.splashColor,
  this.splashFactory,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
  this.focusNode,
  this.canRequestFocus = true,
  this.onFocusChange,
  this.autofocus = false,
}) : assert(containedInkWell != null),
     assert(highlightShape != null),
     assert(enableFeedback != null),
     assert(excludeFromSemantics != null),
     assert(autofocus != null),
     assert(canRequestFocus != null),
     super(key: key);