Matcher isAfterOrSameMomentAs(DateTime date)

Validates that a DateTime is after or 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 isAfterOrSameMomentAs(DateTime date) {
  return predicate((DateTime d) => d.isAfter(date) || d == date,
      "after or same moment as ${date.toIso8601String()}");
}