isBlank static method

bool isBlank(
  1. String? value
)

true if the value is null or Blank. Whitespace is ignored See: isEmpty to check for a zero length string.

Implementation

static bool isBlank(String? value) {
  if (value == null) {
    return true;
  }
  return value.trim().isEmpty;
}