validateStringRange static method

bool validateStringRange(
  1. String text, [
  2. int minLength = 8,
  3. int maxLength = 20
])

Implementation

static bool validateStringRange(String text, [
  int minLength = 8,
  int maxLength = 20]) {
  return text.length >= minLength && text.length <= maxLength;
}