isNullOrBlank function

bool isNullOrBlank(
  1. dynamic value
)

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

Implementation

bool isNullOrBlank(dynamic value) {
  if (value == null) {
    return true;
  }

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