onTap method
Implementation
Widget onTap([VoidCallback? callback]) {
if (callback == null) return this;
return Material(
type: MaterialType.transparency,
child: InkWell(
onTap: callback,
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
child: this,
),
);
}