Converts a header value to an instance of DateTime
to be used inside a matcher.
Used in matchers like hasResponse and hasHeaders. Used to convert a value - typically a String - to a DateTime to be used inside another matcher. For example:
var response = await client.request("/foo").get();
expect(response, hasResponse(200, null, headers: {
"headerValue": asDateTime(equal(new DateTime.now())
});
Source
_Converter asDateTime(dynamic term) => new _Converter(_ConverterType.datetime, term);