InkWell constructor

const InkWell({
  1. Key? key,
  2. Widget? child,
  3. GestureTapCallback? onTap,
  4. GestureTapCallback? onDoubleTap,
  5. GestureLongPressCallback? onLongPress,
  6. GestureTapDownCallback? onTapDown,
  7. GestureTapUpCallback? onTapUp,
  8. GestureTapCallback? onTapCancel,
  9. GestureTapCallback? onSecondaryTap,
  10. GestureTapUpCallback? onSecondaryTapUp,
  11. GestureTapDownCallback? onSecondaryTapDown,
  12. GestureTapCallback? onSecondaryTapCancel,
  13. ValueChanged<bool>? onHighlightChanged,
  14. ValueChanged<bool>? onHover,
  15. MouseCursor? mouseCursor,
  16. Color? focusColor,
  17. Color? hoverColor,
  18. Color? highlightColor,
  19. MaterialStateProperty<Color?>? overlayColor,
  20. Color? splashColor,
  21. InteractiveInkFeatureFactory? splashFactory,
  22. double? radius,
  23. BorderRadius? borderRadius,
  24. ShapeBorder? customBorder,
  25. bool? enableFeedback = true,
  26. bool excludeFromSemantics = false,
  27. FocusNode? focusNode,
  28. bool canRequestFocus = true,
  29. ValueChanged<bool>? onFocusChange,
  30. bool autofocus = false,
  31. MaterialStatesController? statesController,
  32. Duration? hoverDuration,
})

Creates an ink well.

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

Implementation

const InkWell({
  super.key,
  super.child,
  super.onTap,
  super.onDoubleTap,
  super.onLongPress,
  super.onTapDown,
  super.onTapUp,
  super.onTapCancel,
  super.onSecondaryTap,
  super.onSecondaryTapUp,
  super.onSecondaryTapDown,
  super.onSecondaryTapCancel,
  super.onHighlightChanged,
  super.onHover,
  super.mouseCursor,
  super.focusColor,
  super.hoverColor,
  super.highlightColor,
  super.overlayColor,
  super.splashColor,
  super.splashFactory,
  super.radius,
  super.borderRadius,
  super.customBorder,
  bool? enableFeedback = true,
  super.excludeFromSemantics,
  super.focusNode,
  super.canRequestFocus,
  super.onFocusChange,
  super.autofocus,
  super.statesController,
  super.hoverDuration,
}) : super(
  containedInkWell: true,
  highlightShape: BoxShape.rectangle,
  enableFeedback: enableFeedback ?? true,
);