isGte function

Validator isGte(
  1. num min
)

Checks whether the given value is greater or equal to max

Implementation

Validator isGte(num min) {
  return and(
    isType<num>(),
    (value) => Result(
      isValid: value is num && value >= min,
      expected: 'greater than or equal to $min',
      value: value,
    ),
  );
}