lastModified property

DateTime? get lastModified

The date and time the source of the response's data was last modified.

This is parsed from the Last-Modified header in headers. If headers doesn't have a Last-Modified header, this will be null.

Implementation

DateTime? get lastModified {
  if (_lastModifiedCache != null) return _lastModifiedCache;
  if (!headers.containsKey('last-modified')) return null;
  _lastModifiedCache = parseHttpDate(headers['last-modified']!);
  return _lastModifiedCache;
}