lengthBetween method

bool lengthBetween(
  1. int min,
  2. int max
)

Returns true if the string length is between the given values

Implementation

bool lengthBetween(int min, int max) {
  return length >= min && length <= max;
}