minLength static method

BsInputValidator minLength(
  1. int length
)

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;
  });
}