isInstanceOf<T> class Null safety

DEPRECATED Use isA instead.

A matcher that matches if an object is an instance of T (or a subtype).

Inheritance
Annotations

Constructors

isInstanceOf()
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

describe(Description description) Description
Builds a textual description of the matcher.
inherited
describeMismatch(dynamic item, Description mismatchDescription, Map matchState, bool verbose) Description
Builds a textual description of a specific mismatch.
inherited
having(Object? feature(T), String description, dynamic matcher) TypeMatcher<T>
Returns a new TypeMatcher that validates the existing type as well as a specific feature of the object with the provided matcher.
inherited
matches(Object? item, Map matchState) bool
Does the matching of the actual vs expected values.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited