isWhiteSpaceOrEmptyOrNull method

bool isWhiteSpaceOrEmptyOrNull(
  1. String? str
)

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

Implementation

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