onTap method

GestureDetector onTap(
  1. void onTap()?
)

onTap Gesture

Implementation

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