onTap property Null safety
read / write
A pointer has stopped contacting the screen, which is recognized as a tap of a primary button.
This triggers on the up event, if the recognizer wins the arena with it or has previously won, immediately following onTapUp.
If this recognizer doesn't win the arena, onTapCancel is called instead.
See also:
- kPrimaryButton, the button this callback responds to.
- onSecondaryTap, a similar callback but for a secondary button.
- onTapUp, which has the same timing but with details.
- GestureDetector.onTap, which exposes this callback.
Implementation
GestureTapCallback? onTap;