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. GestureTapUpCallback? onTertiaryTapUp,
  15. GestureTapDownCallback? onTertiaryTapDown,
  16. GestureTapCancelCallback? onTertiaryTapCancel,
  17. ValueChanged<bool>? onHighlightChanged,
  18. ValueChanged<bool>? onHover,
  19. MouseCursor? mouseCursor,
  20. bool containedInkWell = false,
  21. BoxShape highlightShape = BoxShape.circle,
  22. double? radius,
  23. BorderRadius? borderRadius,
  24. ShapeBorder? customBorder,
  25. Color? focusColor,
  26. Color? hoverColor,
  27. Color? highlightColor,
  28. WidgetStateProperty<Color?>? overlayColor,
  29. Color? splashColor,
  30. InteractiveInkFeatureFactory? splashFactory,
  31. bool enableFeedback = true,
  32. bool excludeFromSemantics = false,
  33. FocusNode? focusNode,
  34. bool canRequestFocus = true,
  35. ValueChanged<bool>? onFocusChange,
  36. bool autofocus = false,
  37. MaterialStatesController? statesController,
  38. 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.onTertiaryTapUp,
  this.onTertiaryTapDown,
  this.onTertiaryTapCancel,
  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,
});