shouldContain method

void shouldContain(
  1. String expected
)

Asserts that the value contains expected with case sensitivity.

Implementation

void shouldContain(String expected) {
  expect(
    this.contains(expected),
    isTrue,
    reason: 'Expected the String $this to contain $expected',
  );
}