dart / 1 / dart-svg / svgelement / classes.html

classes property

CssClassSet classes

The set of CSS classes applied to this element.

This set makes it easy to add, remove or toggle the classes applied to this element.

element.classes.add('selected');
element.classes.toggle('isOnline');
element.classes.remove('selected');

Source

CssClassSet get classes => new AttributeClassSet(this);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-svg/SvgElement/classes.html