minLength static method
define minLength validation
Implementation
static BsInputValidator minLength(int length) {
return BsInputValidator(validator: (value) {
if (value.toString().length < length)
return "Value cannot be less than $length";
return null;
});
}