maxLength static method

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

Implementation

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