InkWellModifier constructor

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

Creates an ink well.

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

The enableFeedback, and excludeFromSemantics arguments must not be null.

Implementation

const InkWellModifier({
  super.key,
  super.modifierKey,
  super.child,
  super.onTap,
  super.onDoubleTap,
  super.onLongPress,
  super.onTapDown,
  super.onTapUp,
  super.onTapCancel,
  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(
        containedInkWell: true,
        highlightShape: BoxShape.rectangle,
        enableFeedback: enableFeedback ?? true,
      );