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