max<T> static method

Validator max<T>(
  1. T max
)

Creates a validator that requires the control's value to be less than or equal to max value.

The argument max must not be null.

Implementation

static Validator<dynamic> max<T>(T max) => MaxValidator<T>(max);