removeAll method

NotusStyle removeAll(
  1. Iterable<NotusAttribute> attributes
)

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

Implementation

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