minLength static method

ValidationRule<String> minLength(
  1. int min, {
  2. String? message,
})

Creates a MinLength validation rule.

This rule checks if a string's length is greater than or equal to min. It can include a custom validation message.

Implementation

static ValidationRule<String> minLength(int min, {String? message}) =>
    MinLength(min, message: message);