max static method

MaxRule max(
  1. int value
)

Creates a maximum-length validation rule.

The resulting rule fails when the input length is greater than value.

Example:

final rule = Rule.max(100);

Implementation

static MaxRule max(int value) => MaxRule(value);