onTap method

Widget onTap(
  1. VoidCallback onTap
)

Wraps the widget with an InkWell to provide onTap functionality.

Implementation

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