ifModifiedSince property
The date and time specified by the ifModifiedSinceHeader header, if any.
Implementation
get ifModifiedSince {
final string = value('if-modified-since');
if (string == null) return null;
try {
return DateTime.parse(string);
} on FormatException {
return null;
}
}
The date and time specified by the ifModifiedSinceHeader header, if any.
Implementation
set ifModifiedSince(DateTime? value) {
if (value != null) {
set('if-modified-since', value.toUtc().toIso8601String());
} else {
_headers.remove('if-modified-since');
}
}