onTouch method

GestureDetector onTouch(
  1. void onTouch(
    1. TapDownDetails tapDetails
    )?
)

Returns a new GestureDetector widget with the given onTouch callback.

Implementation

GestureDetector onTouch(void Function(TapDownDetails tapDetails)? onTouch) {
  return GestureDetector(onTapDown: onTouch, child: this);
}