BreakoutTimer class
The page-wide breakout timer. Listen to notifier; apply server updates with set.
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
clear()
→ void
-
-
remainingMs({int? now})
→ int?
-
Milliseconds left (0 when over), or null when no timer runs.
-
scheduleWarning(void warn(), {int? now})
→ void
-
Schedule the "returning to the main room" warning for the current deadline (a new deadline replaces it).
Nothing is scheduled when the deadline is already inside the warning window.
-
set({dynamic endsAt, dynamic serverNow, dynamic timerSeconds, int? now})
→ BreakoutTimerState
-
Apply a server update.
now is for tests.