factory TimeId.withTime(DateTime time, {String? randStr}) { final id = time.toString() + '*' + (randStr ?? getRandString(4)); return TimeId._(id); }