min method
A minimum length validator.
Implementation
ValidatorFn<String> min(int length, [String? message]) =>
(String? value, BuildContext context) {
if (value != null && value.length < length) {
return message ?? HookFormScope.of(context).minLength(length);
}
return this.call(value, context);
};