equals method
void
equals(
- T other
Expects that the value is equal to other
according to operator ==.
Implementation
void equals(T other) {
context.expect(() => prefixFirst('equals ', literal(other)), (actual) {
if (actual == other) return null;
return Rejection(which: ['are not equal']);
});
}