onTap method

InkWell onTap(
  1. dynamic action()
)

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