InkWell constructor

const InkWell(
  1. {Key key,
  2. Widget child,
  3. GestureTapCallback onTap,
  4. GestureTapCallback onDoubleTap,
  5. GestureLongPressCallback onLongPress,
  6. GestureTapDownCallback onTapDown,
  7. GestureTapCancelCallback onTapCancel,
  8. ValueChanged<bool> onHighlightChanged,
  9. ValueChanged<bool> onHover,
  10. Color focusColor,
  11. Color hoverColor,
  12. Color highlightColor,
  13. Color splashColor,
  14. InteractiveInkFeatureFactory splashFactory,
  15. double radius,
  16. BorderRadius borderRadius,
  17. ShapeBorder customBorder,
  18. bool enableFeedback: true,
  19. bool excludeFromSemantics: false,
  20. FocusNode focusNode,
  21. bool canRequestFocus: true,
  22. ValueChanged<bool> onFocusChange,
  23. bool autofocus: 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,
  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,
  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,
  focusNode: focusNode,
  canRequestFocus: canRequestFocus ?? true,
  onFocusChange: onFocusChange,
  autofocus: autofocus ?? false,
);