Validates that a DateTime
is the same moment as date
.
When using this matcher with methods like expectResponse, hasResponse, hasHeaders, hasBody,
the compared value will be parsed into a DateTime
prior to running this matcher.
Source
Matcher isSameMomentAs(DateTime date) { return predicate((DateTime d) => d == date, "same moment as ${date.toIso8601String()}"); }