MaxRule constructor

const MaxRule(
  1. int limit
)

Creates a max-length rule using the given limit.

Example:

final rule = MaxRule(50);

Implementation

const MaxRule(this.limit);