updateInfoFields method

void updateInfoFields({
  1. DateTime? accessTime,
  2. DateTime? updateTime,
})

Updates the Info fields

  • accessTime: The cache access time
  • updateTime: The cache update time

Implementation

void updateInfoFields({DateTime? accessTime, DateTime? updateTime}) {
  info.accessTime = accessTime ?? info.accessTime;
  info.updateTime = updateTime ?? info.updateTime;
  _state = EntryState.updatedInfo;
}