Creates a maximum-length validation rule.
The resulting rule fails when the input length is greater than value.
value
Example:
final rule = Rule.max(100);
static MaxRule max(int value) => MaxRule(value);