contains method

Return contains(
  1. Param expected
)

Returns a matcher that matches if the match argument contains the expected value.

For Strings this means substring matching; for Maps it means the map has the key, and for Iterables it means the iterable has a matching element. In the case of iterables, expected can itself be a matcher.

Implementation

Return contains(Param expected) {
  return runMatcher(dart_test.contains(expected));
}