minLength method
Checks if the object is a String and is at least a minimum length
Implementation
AbstractRuleBuilder minLength(int min, {String? message}) {
return must(
(dynamic dyn) => dyn is String && dyn.length >= min,
message != null
? message
: useKeyAsElementName
? "$key must be more than or equal to $min characters long"
: "String must be more than or equal to $min characters long",
code: "notMinLength");
}