MaxLengthValidator constructor
MaxLengthValidator({
- required int length,
Constructs the validator with the maximum length that the value must be.
Implementation
MaxLengthValidator({
required this.length,
}) : assert(length > 0);