isBlank static method
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;
}