DVOfflineClock class
The device's clock, corrected by what the server says the time is.
A device offline for a week, or one whose owner changed the date, stamps its writes with a time the server disagrees with, and last-write-wins compares exactly those stamps — so a wrong clock would win every conflict.
Constructors
- DVOfflineClock({DateTime now()?})
Properties
- correctedNow → DateTime
-
no setter
- deviceNow → DateTime
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset ↔ Duration
-
Server time minus device time, as last observed.
getter/setter pair
- 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
-
observeServerTime(
DateTime server) → void - Records the server's time, as a sync learns it.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited