removeStyleEntries method

List<CSSEntry<CSSValue>> removeStyleEntries(
  1. List<String> names
)

Implementation

List<CSSEntry> removeStyleEntries(List<String> names) {
  if (names.isEmpty) return <CSSEntry>[];

  var style = this.style;

  var removed = <CSSEntry>[];

  for (var name in names) {
    var entry = style.removeEntry(name);
    if (entry != null) {
      removed.add(entry);
    }
  }

  this.style = style;
  return removed;
}