isName static method

bool isName(
  1. String? str
)

Implementation

static bool isName(String? str)
{
  if (isEmpty(str)) {
    return false;
  }
  int len = str!.length;
  if (len >= 2) {
    return true;
  } else {
    return false;
  }
}