maxLength static method
Creates a validator that requires the length of the control's value to be less than or equal to the provided maxLength.
The argument maxLength must not be null.
Implementation
static Validator<dynamic> maxLength(int maxLength) =>
MaxLengthValidator(maxLength);