CssClassSet classabstract
A Set that stores the CSS class names for an element.
- Implemented types
- Implementers
Constructors
Properties
- first→String
- The first element.no setterinherited
- frozen→bool
- Returns
trueif classes cannot be added or removed from thisCssClassSet.no setter - hashCode→int
- The hash code for this object.no setterinherited
- isEmpty→bool
- Whether this collection has no elements.no setterinherited
- isNotEmpty→bool
- Whether this collection has at least one element.no setterinherited
- iterator→Iterator<
String> - An iterator that iterates over the elements of this set.no setterinherited
- last→String
- The last element.no setterinherited
- length→int
- The number of elements in thisIterable.no setterinherited
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- single→String
- Checks that this iterable has only one element, and returns that element.no setterinherited
Methods
- add(
Stringvalue)→bool - Add the class
valueto element.override - addAll(
Iterable< String> iterable)→ void - Add all classes specified in
iterableto element.override - any(
booltest(Stringelement))→bool - Checks whether any element of this iterable satisfies
test.inherited - cast<
R> ()→Set< R> - Provides a view of this set as a set of
Rinstances.inherited - clear(
)→ void - Removes all elements from the set.inherited
- contains(
Object?value)→bool - Determine if this element contains the class
value.override - containsAll(
Iterable< Object?> other)→bool - Whether this set contains all the elements of
other.inherited - difference(
Set< Object?> other)→Set<String> - Creates a new set with the elements of this that are not in
other.inherited - elementAt(
intindex)→String - Returns the
indexth element.inherited - every(
booltest(Stringelement))→bool - Checks whether every element of this iterable satisfies
test.inherited - expand<
T> (Iterable< T> toElements(Stringelement))→Iterable<T> - Expands each element of thisIterable into zero or more elements.inherited
- firstWhere(
booltest(Stringelement), {StringorElse()?})→String - The first element that satisfies the given predicate
test.inherited - fold<
T> (TinitialValue,Tcombine(TpreviousValue,Stringelement))→ T - Reduces a collection to a single value by iteratively combining eachelement of the collection with an existing valueinherited
- followedBy(
Iterable< String> other)→Iterable<String> - Creates the lazy concatenation of this iterable and
other.inherited - forEach(
voidaction(Stringelement))→ void - Invokes
actionon each element of this iterable in iteration order.inherited - intersection(
Set< Object?> other)→Set<String> - Creates a new set which is the intersection between this set and
other.inherited - join(
[Stringseparator =""])→String - Converts each element to aString and concatenates the strings.inherited
- lastWhere(
booltest(Stringelement), {StringorElse()?})→String - The last element that satisfies the given predicate
test.inherited - lookup(
Object?object)→String? - If an object equal to
objectis in the set, return it.inherited - map<
T> (TtoElement(Stringe))→Iterable< T> - The current elements of this iterable modified by
toElement.inherited - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- reduce(
Stringcombine(Stringvalue,Stringelement))→String - Reduces a collection to a single value by iteratively combining elementsof the collection using the provided function.inherited
- remove(
Object?value)→bool - Remove the class
valuefrom element, and return true on successfulremoval.override - removeAll(
Iterable< Object?> iterable)→ void - Remove all classes specified in
iterablefrom element.override - removeWhere(
booltest(Stringelement))→ void - Removes all elements of this set that satisfy
test.inherited - retainAll(
Iterable< Object?> elements)→ void - Removes all elements of this set that are not elements in
elements.inherited - retainWhere(
booltest(Stringelement))→ void - Removes all elements of this set that fail to satisfy
test.inherited - singleWhere(
booltest(Stringelement), {StringorElse()?})→String - The single element that satisfies
test.inherited - skip(
intcount)→Iterable< String> - Creates anIterable that provides all but the first
countelements.inherited - skipWhile(
booltest(Stringvalue))→Iterable< String> - Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited - take(
intcount)→Iterable< String> - Creates a lazy iterable of the
countfirst elements of this iterable.inherited - takeWhile(
booltest(Stringvalue))→Iterable< String> - Creates a lazy iterable of the leading elements satisfying
test.inherited - toggle(
Stringvalue, [bool?shouldAdd])→bool - Adds the class
valueto the element if it is not on it, removes it if itis. - toggleAll(
Iterable< String> iterable, [bool?shouldAdd])→ void - Toggles all classes specified in
iterableon element. - toList(
{boolgrowable =true})→List< String> - Creates aList containing the elements of thisIterable.inherited
- toSet(
)→Set< String> - Creates aSet with the same elements and behavior as this
Set.inherited - toString(
)→String - A string representation of this object.inherited
- union(
Set< String> other)→Set<String> - Creates a new set which contains all the elements of this set and
other.inherited - where(
booltest(Stringelement))→Iterable< String> - Creates a new lazyIterable with all elements that satisfy thepredicate
test.inherited - whereType<
T> ()→Iterable< T> - Creates a new lazyIterable with all elements that have type
T.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited