InkResponseModifier constructor

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

Creates an area of a Material that responds to touch.

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

The containedInkWell, highlightShape, enableFeedback, and excludeFromSemantics arguments must not be null.

Implementation

const InkResponseModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.onTap,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  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,
});