onTap method

Widget onTap(
  1. void onTap()?
)

Wraps the widget in a GestureDetector for tap detection.

Implementation

Widget onTap(void Function()? onTap) =>
    GestureDetector(onTap: onTap, child: this);