maxLength method

SchemaValue<String> maxLength(
  1. int max
)

Implementation

SchemaValue<String> maxLength(int max) {
  return copyWith(validators: [
    ...validators,
    MaxLengthValidator(max),
  ]);
}