InkResponse constructor

const InkResponse({Key key, Widget child, GestureTapCallback onTap, GestureTapDownCallback onTapDown, GestureTapCallback onTapCancel, GestureTapCallback onDoubleTap, GestureLongPressCallback onLongPress, ValueChanged<bool> onHighlightChanged, bool containedInkWell: false, BoxShape highlightShape: BoxShape.circle, double radius, BorderRadius borderRadius, ShapeBorder customBorder, Color highlightColor, Color splashColor, InteractiveInkFeatureFactory splashFactory, bool enableFeedback: true, bool excludeFromSemantics: false })

Creates an area of a Material that responds to touch.

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

The 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.containedInkWell = false,
  this.highlightShape = BoxShape.circle,
  this.radius,
  this.borderRadius,
  this.customBorder,
  this.highlightColor,
  this.splashColor,
  this.splashFactory,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
}) : assert(containedInkWell != null),
     assert(highlightShape != null),
     assert(enableFeedback != null),
     assert(excludeFromSemantics != null),
     super(key: key);