onTap method

GestureDetector onTap(
  1. GestureTapCallback onTap, {
  2. Key? key,
})

Implementation

GestureDetector onTap(
  GestureTapCallback onTap, {
  Key? key,
}) =>
    GestureDetector(
      key: key,
      onTap: onTap,
      child: this,
    );