TimeId.withTime constructor

TimeId.withTime(
  1. DateTime time, {
  2. String? randStr,
})

Implementation

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

  return TimeId._(id);
}