hasInstant function

Matcher hasInstant(
  1. Object? matcher
)

Matches the instant from a HasInstant.

Implementation

Matcher hasInstant(Object? matcher) =>
    isA<HasInstant>().having((t) => t.toInstant(), 'instant', matcher);