value property
set
value
(int newTickCount)
Set the tick count.
Implementation
set value(int newTickCount) {
// If the new value is the same as the current one, do nothing.
if (newTickCount == _value) return;
// If the old tick count is zero, record the start time.
if (_value == 0) _startTime = DateTime.now();
// Use the new value.
_value = newTickCount;
}