withLevel method

ParchmentAttribute<int> withLevel(
  1. int level
)

Implementation

ParchmentAttribute<int> withLevel(int level) {
  if (level == 0) {
    return unset;
  }
  return ParchmentAttribute._(
      key, scope, math.min(_maxIndentationLevel, level));
}