onTap method

Widget onTap(
  1. dynamic onTap()
)

Applies a GestureDetector to detect taps

Implementation

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