shouldBeEmpty method
void
shouldBeEmpty()
Asserts that the value is empty.
Implementation
void shouldBeEmpty() {
expect(
this.isEmpty,
isTrue,
reason: 'Expected String to be empty, but was $this',
);
}