isEmpty static method

bool isEmpty(
  1. String? value
)

true if the value is null, or is a zero length String

Implementation

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