onInkDoubleTap method

InkWell onInkDoubleTap(
  1. VoidCallback callback, {
  2. Color? splashColor,
  3. Color? focusColor,
  4. Color? hoverColor,
  5. bool enableFeedback = false,
  6. double? radius,
  7. BorderRadius? borderRadius,
  8. MouseCursor? mouseCursor,
})

Wraps the current Widget in an InkWell widget with a double tap gesture callback and customizable ink splash parameters.

This method allows you to add a double tap gesture with visual feedback to any widget.

Example:

Text('Ink double tap me').onInkDoubleTap(
  () {
    print('Widget ink double tapped!');
  },
  splashColor: Colors.blue,
  borderRadius: BorderRadius.circular(8),
);

@param callback The function to be called when the widget is double tapped. @param splashColor The color of the ink splash. @param focusColor The color of the focus highlight. @param hoverColor The color of the hover highlight. @param enableFeedback Whether to enable feedback for the ink well. @param radius The radius of the ink splash. @param borderRadius The border radius of the ink splash. @param mouseCursor The cursor for mouse pointers. @return An InkWell widget wrapping the current widget.

Implementation

InkWell onInkDoubleTap(
  VoidCallback callback, {
  Color? splashColor,
  Color? focusColor,
  Color? hoverColor,
  bool enableFeedback = false,
  double? radius,
  BorderRadius? borderRadius,
  MouseCursor? mouseCursor,
}) {
  return InkWell(
    onDoubleTap: callback,
    splashColor: splashColor,
    focusColor: focusColor,
    hoverColor: hoverColor,
    enableFeedback: enableFeedback,
    radius: radius,
    borderRadius: borderRadius,
    mouseCursor: mouseCursor,
    child: this,
  );
}