removeAll method

ParchmentStyle removeAll(
  1. Iterable<ParchmentAttribute> attributes
)

Removes attributes from this style and returns new instance of ParchmentStyle containing result.

Implementation

ParchmentStyle removeAll(Iterable<ParchmentAttribute> attributes) {
  final merged = Map<String, ParchmentAttribute>.from(_data);
  attributes.map((item) => item.key).forEach(merged.remove);
  return ParchmentStyle._(merged);
}