setTimeToNowIfUnset method

void setTimeToNowIfUnset()

Sets time to now if it's null.

Implementation

void setTimeToNowIfUnset() {
  if (!disabled && time == null) {
    time = _withEpochDate(_clock.now());
  }
}