MinLength constructor

MinLength(
  1. int min, {
  2. String? message,
})

Creates a new instance of the MinLength validation rule.

  • min: The minimum required length for the string (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

MinLength(this.min, {String? message}) : super(message);