метод add
- String value
inherited
Добавить класс value к элементу.
Это эквивалент Dart функции jQuery's addClass.
Реализация
bool add(String value) {
_validateToken(value);
// TODO - figure out if we need to do any validation here
// or if the browser natively does enough.
return modify((s) => s.add(value)) ?? false;
}
© 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/add.html