konClick method

Widget konClick(
  1. GestureTapCallback onClick, {
  2. HitTestBehavior behavior = HitTestBehavior.translucent,
})

点击扩展

Implementation

Widget konClick(
  GestureTapCallback onClick, {
  HitTestBehavior behavior = HitTestBehavior.translucent,
}) {
  return GestureDetector(
    behavior: behavior,
    onTap: () {
      onClick();
    },
    child: this,
  );
}