EntryInfo<K, U extends Object>.create constructor

EntryInfo<K, U extends Object>.create(
  1. K key, [
  2. Set<U>? users
])

Implementation

factory EntryInfo.create(K key, [Set<U>? users]) {
  final now = DateTime.now();
  return EntryInfo(
    key: key,
    added: now,
    lastAccess: now,
    users: {...users ?? {}},
  );
}