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