isWhiteSpaceOrEmptyOrNull static method

bool isWhiteSpaceOrEmptyOrNull(
  1. String? str
)

Returns true for for all strings that are empty, null or only whitespace.

Implementation

static bool isWhiteSpaceOrEmptyOrNull(String? str) {
  return removeWhiteSpace(str ?? '').isEmpty;
}