onTapFun method

void onTapFun()

Implementation

void onTapFun() {
  if (Constants.idleTimeSpent < 10) {
    Constants.idleTimeSpent = 0;
  } else {
    Constants.totalIdleTimeSpent =
        Constants.totalIdleTimeSpent + Constants.idleTimeSpent;
    Constants.idleTimeSpent = 0;
  }
}