set static method
Apply a server update. now is for tests.
Implementation
static BreakoutTimerState set({dynamic endsAt, dynamic serverNow, dynamic timerSeconds, int? now}) {
final at = now ?? DateTime.now().millisecondsSinceEpoch;
final serverEndsAt = _positive(endsAt);
final server = _positive(serverNow);
final skew = server != null ? at - server : 0;
notifier.value = BreakoutTimerState(
endsAt: serverEndsAt != null ? serverEndsAt + skew : null,
timerSeconds: _positive(timerSeconds),
);
return notifier.value;
}