onTap method
On tap run a action.
Implementation
InkWell onTap(Function() action) {
return InkWell(
onTap: () async {
await action();
},
child: this,
splashColor: Colors.transparent,
hoverColor: Colors.transparent,
focusColor: Colors.transparent,
);
}