MinLengthRule constructor

const MinLengthRule(
  1. int minLength, {
  2. String? message,
})

Creates a minimum length validation rule. minLength is the required minimum number of characters. message is the optional error message.

Implementation

const MinLengthRule(this.minLength, {String? message})
    : message =
          message ?? 'Value must be at least $minLength characters long.';