isLengthBetween method

bool isLengthBetween(
  1. int minLength,
  2. int maxLength
)

Implementation

bool isLengthBetween(int minLength, int maxLength) => trim().length <= maxLength && trim().length >= minLength;