isValid static method

bool isValid(
  1. String? str
)

Implementation

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