LengthOption constructor

LengthOption({
  1. int? length,
  2. int? min,
  3. int? max,
})

Do not use

Implementation

LengthOption({int? length, int? min, int? max}) {
  name = "l";
  params = [];
  if (length != null) {
    this.length = length;
    params.add(length.toString());
  } else {
    if (min == null && max == null) {
      throw ArgumentError();
    }
    params.add("${min ?? ""}-${max ?? ""}");
    this.min = min ?? 0;
    this.max = max;
  }
}