isInstanceOf< T> class
DEPRECATED Use TypeMatcher instead.
Returns a matcher that matches if an object is an instance
of T
(or a subtype).
- Inheritance
- Object
- Matcher
- TypeMatcher<
T> - isInstanceOf
- Annotations
- @Deprecated('Use `const TypeMatcher<MyType>()` instead.')
Constructors
- isInstanceOf()
-
const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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 source), String description, Object matcher) → TypeMatcher< T> -
Returns a new TypeMatcher that validates the existing type as well as
a specific
feature
of the object with the providedmatcher
. [...]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 -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited