markBackgrounded static method
Implementation
static SessionState? markBackgrounded(SessionState? state, int now) {
if (state == null) {
return state;
}
return state.copyWith(backgroundedAt: state.backgroundedAt ?? now);
}
static SessionState? markBackgrounded(SessionState? state, int now) {
if (state == null) {
return state;
}
return state.copyWith(backgroundedAt: state.backgroundedAt ?? now);
}