in lib/src/iterable_matchers.dart [39:62]
Description describeTypedMismatch(dynamic item,
Description mismatchDescription, Map matchState, bool verbose) {
if (matchState['index'] != null) {
var index = matchState['index'];
var element = matchState['element'];
mismatchDescription
.add('has value ')
.addDescriptionOf(element)
.add(' which ');
var subDescription = StringDescription();
_matcher.describeMismatch(
element, subDescription, matchState['state'] as Map, verbose);
if (subDescription.length > 0) {
mismatchDescription.add(subDescription.toString());
} else {
mismatchDescription.add("doesn't match ");
_matcher.describe(mismatchDescription);
}
mismatchDescription.add(' at index $index');
return mismatchDescription;
}
return super
.describeMismatch(item, mismatchDescription, matchState, verbose);
}