min method

IntType min(
  1. int value
)

allow only values >= value value the minimum value

Implementation

IntType min(int value) {
  test<int>(
    type: int,
    name: "min",
    params: {
      "min": value
    },
    check: (obj) => obj >= value,
  );

  return this;
}