isNullOrBlank static method

bool? isNullOrBlank(
  1. dynamic value
)

Checks if data is null or blank (empty or only contains whitespace).

Implementation

static bool? isNullOrBlank(dynamic value) {
  if (isNull(value)) {
    return true;
  }

  // Pretty sure that isNullOrBlank should't be validating
  // iterables... but I'm going to keep this for compatibility.
  return _isEmpty(value);
}