isActive property

bool get isActive

Whether a session is running and has not timed out.

Implementation

bool get isActive {
  if (!_active) return false;
  return _elapsed() < timeout;
}