EntryBuilder<T, I extends Info, E extends Entry<I>> constructor

EntryBuilder<T, I extends Info, E extends Entry<I>>(
  1. String key,
  2. T value,
  3. DateTime creationTime, {
  4. DateTime? accessTime,
  5. DateTime? updateTime,
})

Builds a EntryBuilder

  • key: The entry key
  • value: The entry value
  • creationTime: The entry creation time
  • state: The entry state
  • accessTime: The access time
  • updateTime: The update time

Implementation

EntryBuilder(this.key, this.value, this.creationTime,
    {DateTime? accessTime, DateTime? updateTime})
    : state = EntryState.added,
      accessTime = accessTime ?? creationTime,
      updateTime = updateTime ?? creationTime;