isEmpty static method

bool isEmpty(
  1. String? str
)

Implementation

static bool isEmpty(String? str)
{
  if (str == null) {
    return true;
  }
  if (str == "") {
    return true;
  }
  if (str == "null") {
    return true;
  }
  if (str == "nil") {
    return true;
  }
  if (str.length == 0) {
    return true;
  }
  return false;
}