EntryInfo<K, U extends Object>.create constructor
EntryInfo<K, U extends Object>.create (
- K key, [
- 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 ?? {}},
);
}