maxLength static method

Validator maxLength(
  1. int max, {
  2. String? message,
})

Validates a maximum length.

FormRules.maxLength(50).build()

Implementation

static Validator maxLength(int max, {String? message}) =>
    Validator._()..maxLength(max, message: message);