onTap method

Widget onTap(
  1. void onTap(), {
  2. bool isShowSplash = false,
  3. double? borderRadius,
})

Implementation

Widget onTap(void Function() onTap,
        {bool isShowSplash = false, double? borderRadius}) =>
    isShowSplash
        ? InkWell(
            onTap: onTap,
            borderRadius: BorderRadius.circular(borderRadius ?? 0),
            child: this,
          )
        : GestureDetector(
            behavior: HitTestBehavior.translucent,
            onTap: onTap,
            child: this,
          );