onTap property
(void Function()?)
onTap
final
A tap with a primary button has occurred.
This triggers when the tap gesture wins. If the tap gesture did not win, onTapCancel is called instead.
See also:
- kPrimaryButton, the button this callback responds to.
- onTapUp, which is called at the same time but includes details regarding the pointer position.
Implementation
final void Function()? onTap;