setTimeToNowIfUnset method
void
setTimeToNowIfUnset()
Sets dateTime to now if it's null.
Implementation
void setTimeToNowIfUnset() {
if (!disabled && _time == null) {
DateTime now = _clock.now();
_time = now;
_date = Date(now.year, now.month, now.day);
_updateDateTimeAndNotify();
}
}