InkWell constructor

const InkWell({Key key, Widget child, GestureTapCallback onTap, GestureTapCallback onDoubleTap, GestureLongPressCallback onLongPress, GestureTapDownCallback onTapDown, GestureTapCancelCallback onTapCancel, ValueChanged<bool> onHighlightChanged, ValueChanged<bool> onHover, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, InteractiveInkFeatureFactory splashFactory, double radius, BorderRadius borderRadius, ShapeBorder customBorder, bool enableFeedback: true, bool excludeFromSemantics: false })

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({
  Key key,
  Widget child,
  GestureTapCallback onTap,
  GestureTapCallback onDoubleTap,
  GestureLongPressCallback onLongPress,
  GestureTapDownCallback onTapDown,
  GestureTapCancelCallback onTapCancel,
  ValueChanged<bool> onHighlightChanged,
  ValueChanged<bool> onHover,
  Color focusColor,
  Color hoverColor,
  Color highlightColor,
  Color splashColor,
  InteractiveInkFeatureFactory splashFactory,
  double radius,
  BorderRadius borderRadius,
  ShapeBorder customBorder,
  bool enableFeedback = true,
  bool excludeFromSemantics = false,
}) : super(
  key: key,
  child: child,
  onTap: onTap,
  onDoubleTap: onDoubleTap,
  onLongPress: onLongPress,
  onTapDown: onTapDown,
  onTapCancel: onTapCancel,
  onHighlightChanged: onHighlightChanged,
  onHover: onHover,
  containedInkWell: true,
  highlightShape: BoxShape.rectangle,
  focusColor: focusColor,
  hoverColor: hoverColor,
  highlightColor: highlightColor,
  splashColor: splashColor,
  splashFactory: splashFactory,
  radius: radius,
  borderRadius: borderRadius,
  customBorder: customBorder,
  enableFeedback: enableFeedback ?? true,
  excludeFromSemantics: excludeFromSemantics ?? false,
);