canExecute method

bool canExecute()

Check if an action can be executed

Implementation

bool canExecute() {
  _cleanup();
  return _callTimes.length < maxCalls;
}