Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. CssClassSet class
CssClassSet
description

CssClassSet classabstract

A Set that stores the CSS class names for an element.

Implemented types
Implementers

Constructors

CssClassSet()

Properties

firstString
The first element.
no setterinherited
frozenbool
Returnstrue if classes cannot be added or removed from thisCssClassSet.
no setter
hashCodeint
The hash code for this object.
no setterinherited
isEmptybool
Whether this collection has no elements.
no setterinherited
isNotEmptybool
Whether this collection has at least one element.
no setterinherited
iteratorIterator<String>
An iterator that iterates over the elements of this set.
no setterinherited
lastString
The last element.
no setterinherited
lengthint
The number of elements in thisIterable.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
singleString
Checks that this iterable has only one element, and returns that element.
no setterinherited

Methods

add(Stringvalue)bool
Add the classvalue to element.
override
addAll(Iterable<String>iterable)→ void
Add all classes specified initerable to element.
override
any(booltest(Stringelement))bool
Checks whether any element of this iterable satisfiestest.
inherited
cast<R>()Set<R>
Provides a view of this set as a set ofR instances.
inherited
clear()→ void
Removes all elements from the set.
inherited
contains(Object?value)bool
Determine if this element contains the classvalue.
override
containsAll(Iterable<Object?>other)bool
Whether this set contains all the elements ofother.
inherited
difference(Set<Object?>other)Set<String>
Creates a new set with the elements of this that are not inother.
inherited
elementAt(intindex)String
Returns theindexth element.
inherited
every(booltest(Stringelement))bool
Checks whether every element of this iterable satisfiestest.
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 predicatetest.
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 value
inherited
followedBy(Iterable<String>other)Iterable<String>
Creates the lazy concatenation of this iterable andother.
inherited
forEach(voidaction(Stringelement))→ void
Invokesaction on 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 andother.
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 predicatetest.
inherited
lookup(Object?object)String?
If an object equal toobject is in the set, return it.
inherited
map<T>(TtoElement(Stringe))Iterable<T>
The current elements of this iterable modified bytoElement.
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 classvalue from element, and return true on successfulremoval.
override
removeAll(Iterable<Object?>iterable)→ void
Remove all classes specified initerable from element.
override
removeWhere(booltest(Stringelement))→ void
Removes all elements of this set that satisfytest.
inherited
retainAll(Iterable<Object?>elements)→ void
Removes all elements of this set that are not elements inelements.
inherited
retainWhere(booltest(Stringelement))→ void
Removes all elements of this set that fail to satisfytest.
inherited
singleWhere(booltest(Stringelement), {StringorElse()?})String
The single element that satisfiestest.
inherited
skip(intcount)Iterable<String>
Creates anIterable that provides all but the firstcount elements.
inherited
skipWhile(booltest(Stringvalue))Iterable<String>
Creates anIterable that skips leading elements whiletest is satisfied.
inherited
take(intcount)Iterable<String>
Creates a lazy iterable of thecount first elements of this iterable.
inherited
takeWhile(booltest(Stringvalue))Iterable<String>
Creates a lazy iterable of the leading elements satisfyingtest.
inherited
toggle(Stringvalue, [bool?shouldAdd])bool
Adds the classvalue to the element if it is not on it, removes it if itis.
toggleAll(Iterable<String>iterable, [bool?shouldAdd])→ void
Toggles all classes specified initerable on 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 thisSet.
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 andother.
inherited
where(booltest(Stringelement))Iterable<String>
Creates a new lazyIterable with all elements that satisfy thepredicatetest.
inherited
whereType<T>()Iterable<T>
Creates a new lazyIterable with all elements that have typeT.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. Dart
  2. dart:html
  3. CssClassSet class
dart:html library

[8]ページ先頭

©2009-2025 Movatter.jp