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. GestureLongPressUpCallback? onLongPressUp,
  10. GestureTapCallback? onSecondaryTap,
  11. GestureTapUpCallback? onSecondaryTapUp,
  12. GestureTapDownCallback? onSecondaryTapDown,
  13. GestureTapCallback? onSecondaryTapCancel,
  14. ValueChanged<bool>? onHighlightChanged,
  15. ValueChanged<bool>? onHover,
  16. MouseCursor? mouseCursor,
  17. bool containedInkWell = false,
  18. BoxShape highlightShape = BoxShape.circle,
  19. double? radius,
  20. BorderRadius? borderRadius,
  21. ShapeBorder? customBorder,
  22. Color? focusColor,
  23. Color? hoverColor,
  24. Color? highlightColor,
  25. WidgetStateProperty<Color?>? overlayColor,
  26. Color? splashColor,
  27. InteractiveInkFeatureFactory? splashFactory,
  28. bool enableFeedback = true,
  29. bool excludeFromSemantics = false,
  30. FocusNode? focusNode,
  31. bool canRequestFocus = true,
  32. ValueChanged<bool>? onFocusChange,
  33. bool autofocus = false,
  34. MaterialStatesController? statesController,
  35. 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.onLongPressUp,
  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,
});