hasTimedOut method

bool hasTimedOut()

Implementation

bool hasTimedOut() {

  if (timeout == 0) {
    return false;
  }

  final int now = DateTime.now().millisecondsSinceEpoch;
  return now > lastActivity! + (timeout! * 1000);
}