Spec-Zone.ru › Dart 2

dart:svg

modify method

dynamic modify(
  1. dynamic f(
    1. Set<String> s
    )
)
inherited

Helper method used to modify the set of css classes on this element.

f - callback with: s - a Set of all the css class name currently on this element.

After f returns, the modified set is written to the className property of this element.

Implementation

modify(f(Set<String> s)) {
  Set<String> s = readClasses();
  var ret = f(s);
  writeClasses(s);
  return ret;
}

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API