markBackgrounded static method

SessionState? markBackgrounded(
  1. SessionState? state,
  2. int now
)

Implementation

static SessionState? markBackgrounded(SessionState? state, int now) {
  if (state == null) {
    return state;
  }

  return state.copyWith(backgroundedAt: state.backgroundedAt ?? now);
}