dart / 2 / dart-svg / attributeclassset / addall.html

addAll method

void addAll(
  1. Iterable<String> iterable
)
inherited

Add all classes specified in iterable to element.

This is the Dart equivalent of jQuery's addClass.

Implementation

void addAll(Iterable<String> iterable) {
  // TODO - see comment above about validation.
  modify((s) => s.addAll(iterable.map(_validateToken)));
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-svg/AttributeClassSet/addAll.html