InkWidget constructor

InkWidget({
  1. required Widget child,
  2. Key? key,
  3. bool disable = false,
  4. double disableOpacity = _defaultOpacity,
  5. Color? disableColor,
  6. Widget? disableWidget,
  7. ShapeDecoration? shape,
  8. ShapeBorder? shapeBorder,
  9. InkWell? inkWellWidget,
  10. GestureTapCallback? onTap,
  11. GestureTapCallback? onDoubleTap,
  12. GestureLongPressCallback? onLongPress,
  13. GestureTapDownCallback? onTapDown,
  14. GestureTapCancelCallback? onTapCancel,
  15. ValueChanged<bool>? onHighlightChanged,
  16. ValueChanged<bool>? onHover,
  17. Color? focusColor,
  18. Color? hoverColor,
  19. Color? highlightColor,
  20. Color? splashColor,
  21. InteractiveInkFeatureFactory? splashFactory,
  22. double? radius,
  23. BorderRadius? borderRadius,
  24. ShapeBorder? customBorder,
  25. bool enableFeedback = true,
  26. bool excludeFromSemantics = false,
  27. FocusNode? focusNode,
  28. bool canRequestFocus = true,
  29. ValueChanged<bool>? onFocusChange,
  30. bool autofocus = false,
})

Implementation

InkWidget({
  required this.child,
  Key? key,
  this.disable = false,
  this.disableOpacity = _defaultOpacity,
  Color? disableColor,
  this.disableWidget,
  this.shape,
  this.shapeBorder,
  this.inkWellWidget,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.onTapDown,
  this.onTapCancel,
  this.onHighlightChanged,
  this.onHover,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.splashFactory,
  this.radius,
  this.borderRadius,
  this.customBorder,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
  this.focusNode,
  this.canRequestFocus = true,
  this.onFocusChange,
  this.autofocus = false,
})  : disableColor =
          disableColor ?? Colors.black.withOpacity(_defaultOpacity),
      super(key: key);