BaseAssertions<T, K> class abstract

Base Matcher

Implementers

Constructors

BaseAssertions(T? subject, {bool isReversed = false, String? subjectLabel})
Matcher constructor

Properties

and → K
Bind assertions
no setter
hashCode int
The hash code for this object.
no setterinherited
isReversed bool
Checking reverse
final
not → K
Invert assertion
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject → T?
the object which value is being asserted.
final
subjectLabel String
Friendly label for the subject object
no setter

Methods

as(String subjectLabel) → K
Set friendly title for the subject
be(T expected) → K
Asserts that the value is equal to the specified expected value. expected The expected value
beAssignableTo<U>() → U?
Asserts that the object is assignable to a variable of type U
beNull() → K
Asserts that the object is not null
beOfType<U>() → U?
Asserts that the object is not of the specified type U
beOneOf(Iterable<T> validItems) → K
Asserts that a value is one of the specified validItems
copy(T? subject, {bool isReversed = false, String? subjectLabel}) → K
Copy the matcher
isEqual(T expected) bool
Comparison with an another expected value
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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