onTap method

InkWell onTap(
  1. dynamic action()
)

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,
  );
}