matches method

  1. @override
bool matches(
  1. covariant Spec item,
  2. Object? matchState
)

Does the matching of the actual vs expected values.

item is the actual value. matchState can be supplied and may be used to add details about the mismatch that are too costly to determine in describeMismatch.

Implementation

@override
bool matches(covariant Spec item, Object? matchState) =>
    _dart(item, _emitter) == _expectedSource;