toggleAll abstract method

void toggleAll(Iterable<String> iterable, [ bool shouldAdd ])

Toggles all classes specified in iterable on element.

Iterate through iterable's items, and add it if it is not on it, or remove it if it is. This is the Dart equivalent of jQuery's toggleClass. If shouldAdd is true, then we always add all the classes in iterable element. If shouldAdd is false then we always remove all the classes in iterable from the element.

Each element of iterable must be a valid 'token' representing a single class, i.e. a non-empty string containing no whitespace.

Source

void toggleAll(Iterable<String> iterable, [bool shouldAdd]);

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