MaxLengthExtensions extension

Extension on Validator to add a max length validation rule.

on
  • Validator

Methods

maxLength(int maxLength, {String? errorMessage}) → Validator

Available on Validator, provided by the MaxLengthExtensions extension

Adds a MaxLengthRule to the validator.