shouldRotateOnInactivity static method
Implementation
static bool shouldRotateOnInactivity(
SessionState? state,
int now, {
int foregroundSessionTimeout = 0,
}) {
if (state == null || foregroundSessionTimeout <= 0) {
return false;
}
return now - state.lastActivityAt > foregroundSessionTimeout;
}