InkResponse constructor

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

Creates an area of a Material that responds to touch.

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

Implementation

const InkResponse({
  super.key,
  this.child,
  this.onTap,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onSecondaryTap,
  this.onSecondaryTapUp,
  this.onSecondaryTapDown,
  this.onSecondaryTapCancel,
  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,
  this.statesController,
  this.hoverDuration,
});