minLength method

StringType minLength(
  1. int length
)

requires the value to hava minimum length

Implementation

StringType  minLength(int length) {
  test<String> (
    type: String,
    name: "minLength",
    params: {
      "minLength": length
    },
    check: (s) => s.length >= length,
  );

  return this;
}