shouldBeNullOrEmpty method

void shouldBeNullOrEmpty()

Asserts that the value is null or empty.

Implementation

void shouldBeNullOrEmpty() {
  expect(
    this?.isEmpty ?? true,
    isTrue,
    reason: 'Expected String to be null or empty, but was $this',
  );
}