onTap method
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,
);