maxLength static method

Validator maxLength(
  1. int maxLength
)

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);