isA<T> function

TypeMatcher<T> isA<T>()

Returns a matcher that matches objects with type T.

expect(shouldBeDuration, isA<Duration>());

Expectations can be chained on top of the type using the TypeMatcher.having method to add additional constraints.

Implementation

TypeMatcher<T> isA<T>() => TypeMatcher<T>();