minLength static method

bool minLength(
  1. String value,
  2. int minLength
)

Implementation

static bool minLength(String value, int minLength) {
  if (value.isEmpty) return false;
  if (value.length >= minLength)
    return true;
  else
    return false;
}