onTap method

Widget onTap(
  1. void onTap()?
)

点击事件

Implementation

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