isValidStrings static method

bool isValidStrings(
  1. List<String> values, {
  2. int maxLength = 0,
  3. int minLength = 0,
  4. RegExp? regs,
})

Implementation

static bool isValidStrings(
  List<String> values, {
  int maxLength = 0,
  int minLength = 0,
  RegExp? regs,
}) {
  final list = values.where((value) {
    return isValidString(
      value,
      maxLength: maxLength,
      minLength: minLength,
      pattern: regs,
    );
  });
  return list.length == values.length;
}