shouldBeNullOrBlank method

void shouldBeNullOrBlank()

Asserts that the value is null or blank.

Implementation

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