CustomInkWell constructor

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

Implementation

const CustomInkWell({
  Key? key,
  Widget? child,
  GestureTapCallback? onTap,
  GestureTapDownCallback? onTapDown,
  GestureTapCallback? onTapCancel,
  GestureTapCallback? onDoubleTap,
  GestureLongPressCallback? onLongPress,
  ValueChanged<bool>? onHighlightChanged,
  ValueChanged<bool>? onHover,
  MouseCursor? mouseCursor,
  BorderRadius? borderRadius,
  ShapeBorder? customBorder,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  MaterialStateProperty<Color?>? overlayColor,
  Color? splashColor,
  InteractiveInkFeatureFactory? splashFactory,
  bool enableFeedback = true,
  bool excludeFromSemantics = false,
  FocusNode? focusNode,
  bool canRequestFocus = true,
  ValueChanged<bool>? onFocusChange,
  bool autofocus = false,
  Duration? Function(HighlightType type)? highlightFadeDuration, // <<<
  double? Function(RenderBox referenceBox)? getRadius, // <<<
  Rect? Function(RenderBox referenceBox)? getRect, // <<<
}) : super(
        key: key,
        child: child,
        onTap: onTap,
        onTapDown: onTapDown,
        onTapCancel: onTapCancel,
        onDoubleTap: onDoubleTap,
        onLongPress: onLongPress,
        onHighlightChanged: onHighlightChanged,
        onHover: onHover,
        mouseCursor: mouseCursor,
        containedInkWell: true,
        highlightShape: BoxShape.rectangle,
        borderRadius: borderRadius,
        customBorder: customBorder,
        focusColor: focusColor,
        hoverColor: hoverColor,
        highlightColor: highlightColor,
        overlayColor: overlayColor,
        splashColor: splashColor,
        splashFactory: splashFactory,
        enableFeedback: enableFeedback,
        excludeFromSemantics: excludeFromSemantics,
        onFocusChange: onFocusChange,
        autofocus: autofocus,
        focusNode: focusNode,
        canRequestFocus: canRequestFocus,
        highlightFadeDuration: highlightFadeDuration /* <<< */,
        getRadius: getRadius /* <<< */,
        getRect: getRect /* <<< */,
      );