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