setTimeToNowIfUnset method
void
setTimeToNowIfUnset()
Sets time to now if it's null.
Implementation
void setTimeToNowIfUnset() {
if (!disabled && time == null) {
time = _withEpochDate(_clock.now());
}
}
Sets time to now if it's null.
void setTimeToNowIfUnset() {
if (!disabled && time == null) {
time = _withEpochDate(_clock.now());
}
}