matches method

bool matches({
  1. required int length,
})

Implementation

bool matches({required int length}) {
  if (kIsWeb || length < minLength) {
    return false;
  }
  final maxLength = this.maxLength;
  return maxLength == null || length < maxLength;
}