VaultEntry.updated constructor

VaultEntry.updated(
  1. VaultInfo info,
  2. dynamic value,
  3. DateTime updateTime
)

Creates an updated VaultEntry

  • info: The vault info of the original entry
  • value: The cache value
  • updateTime: The cache update time

Implementation

VaultEntry.updated(VaultInfo info, dynamic value, DateTime updateTime)
    : this._(
          VaultInfo(info.key, info.creationTime,
              accessTime: info.accessTime, updateTime: updateTime),
          value,
          EntryState.updated);