onTap property
void Function()
onTap
final
onTap Function that provides you the ability to control tap action.
With this function, you can easily assign tasks to the widget.
Implementation
final void Function() onTap;