shouldRotateOnResume static method
Implementation
static bool shouldRotateOnResume(
SessionState? state,
int now, {
int backgroundSessionTimeout = 0,
}) {
if (state?.backgroundedAt == null || backgroundSessionTimeout <= 0) {
return false;
}
return now - state!.backgroundedAt! > backgroundSessionTimeout;
}