AttributeClassSet class
Constructors
- AttributeClassSet(Element _element)
Properties
- first → String
-
read-only, inherited
- frozen → bool
-
Returns
true
if classes cannot be added or removed from thisCssClassSet
.read-only, inherited - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isEmpty → bool
-
read-only, inherited
- isNotEmpty → bool
-
read-only, inherited
-
iterator
→ Iterator<
String> -
read-only, inherited
- last → String
-
read-only, inherited
- length → int
-
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- single → String
-
read-only, inherited
Methods
-
readClasses(
) → Set< String> - Read the class names from the Element class property, and put them into a set (duplicates are discarded). This is intended to be overridden by specific implementations.
-
writeClasses(
Set s) → void - Join all the elements of a set into one string and write back to the element. This is intended to be overridden by specific implementations.
-
add(
String value) → bool -
Add the class
value
to element. [...]inherited -
addAll(
Iterable< String> iterable) → void -
Add all classes specified in
iterable
to element. [...]inherited -
any(
bool f(String element)) → bool -
inherited
-
cast<
R> () → Set< R> -
Provides a view of this set as a set of
R
instances. [...]inherited -
clear(
) → void -
inherited
-
contains(
Object value) → bool -
Determine if this element contains the class
value
. [...]inherited -
containsAll(
Iterable< Object> collection) → bool -
inherited
-
difference(
Set< Object> other) → Set<String> -
inherited
-
elementAt(
int index) → String -
inherited
-
every(
bool f(String element)) → bool -
inherited
-
expand<
T> (Iterable< T> f(String element)) → Iterable<T> -
inherited
-
firstWhere(
bool test(String value), { String orElse() }) → String -
inherited
-
fold<
T> (T initialValue, T combine(T previousValue, String element)) → T -
inherited
-
followedBy(
Iterable< String> other) → Iterable<String> -
Returns the lazy concatentation of this iterable and
other
. [...]inherited -
forEach(
void f(String element)) → void -
inherited
-
intersection(
Set< Object> other) → Set<String> -
inherited
-
join(
[String separator = "" ]) → String -
inherited
-
lastWhere(
bool test(String value), { String orElse() }) → String -
inherited
-
lookup(
Object value) → String -
Lookup from the Set interface. Not interesting for a String set.
inherited
-
map<
T> (T f(String e)) → Iterable< T> -
inherited
-
modify(
dynamic f(Set< String> s)) → dynamic -
Helper method used to modify the set of css classes on this element. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
reduce(
String combine(String value, String element)) → String -
inherited
-
remove(
Object value) → bool -
Remove the class
value
from element, and return true on successful removal. [...]inherited -
removeAll(
Iterable< Object> iterable) → void -
Remove all classes specified in
iterable
from element. [...]inherited -
removeWhere(
bool test(String name)) → void -
inherited
-
retainAll(
Iterable< Object> iterable) → void -
inherited
-
retainWhere(
bool test(String name)) → void -
inherited
-
retype<
R> () → Set< R> -
@Deprecated('Use cast instead.'), inherited
-
singleWhere(
bool test(String value), { String orElse() }) → String -
inherited
-
skip(
int n) → Iterable< String> -
inherited
-
skipWhile(
bool test(String value)) → Iterable< String> -
inherited
-
take(
int n) → Iterable< String> -
inherited
-
takeWhile(
bool test(String value)) → Iterable< String> -
inherited
-
toggle(
String value, [ bool shouldAdd ]) → bool -
Adds the class
value
to the element if it is not on it, removes it if it is. [...]inherited -
toggleAll(
Iterable< String> iterable, [ bool shouldAdd ]) → void -
Toggles all classes specified in
iterable
on element. [...]inherited -
toList(
{bool growable: true }) → List< String> -
inherited
-
toSet(
) → Set< String> -
inherited
-
toString(
) → String -
inherited
-
union(
Set< String> other) → Set<String> -
inherited
-
where(
bool f(String element)) → Iterable< String> -
inherited
-
whereType<
T> () → Iterable< T> -
Returns a new lazy Iterable with all elements that have type
T
. [...]inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited