TypeMatcher<T> constructor

const TypeMatcher<T>([
  1. @Deprecated('Provide a type argument to TypeMatcher and omit the name. ' 'This argument will be removed in the next release.') String? name
])

Create a matcher matches instances of type T.

For a fluent API to create TypeMatchers see isA.

Implementation

const TypeMatcher(
    [@Deprecated('Provide a type argument to TypeMatcher and omit the name. '
        'This argument will be removed in the next release.')
    String? name])
    : _name =
          // ignore: deprecated_member_use_from_same_package
          name;