addTapGesture method

Widget addTapGesture(
  1. dynamic onTap()
)

Implementation

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