onTap method
onTap Gesture
Implementation
GestureDetector onTap(void Function()? onTap) {
  return GestureDetector(
    onTap: onTap,
    child: this,
  );
}onTap Gesture
GestureDetector onTap(void Function()? onTap) {
  return GestureDetector(
    onTap: onTap,
    child: this,
  );
}