shouldEndWith method

void shouldEndWith(
  1. String expected
)

Asserts that the value ends with expected with case sensitivity.

Implementation

void shouldEndWith(String expected) {
  expect(
    this,
    endsWith(expected),
    reason: 'Expected the String $this to end with $expected',
  );
}