MinAndMaxCharactersValidationRule constructor

MinAndMaxCharactersValidationRule({
  1. required int min,
  2. required int max,
  3. String? customText,
  4. bool? showName,
})

Implementation

MinAndMaxCharactersValidationRule({
  required int min,
  required int max,
  String? customText,
  bool? showName,
})  : assert(min > 0, 'min must be greater than 0'),
      assert(max > 0, 'max must be greater than 0'),
      assert(max >= min, 'max must be greater than min'),
      _min = min,
      _max = max,
      _customText = customText,
      _showName = showName;