onTap method

Widget onTap(
  1. GestureTapCallback? onPressed
)

Implementation

Widget onTap(final GestureTapCallback? onPressed) => GestureDetector(onTap: onPressed, child: this);