notEmpty method

StringType notEmpty()

requires the value to be non empty

Implementation

StringType notEmpty() {
  test<String>(
    type: String,
    name: "notEmpty",
    check: (s) => s.isNotEmpty,
  );

  return this;
}