StyleSheetList extension type
The StyleSheetList
interface represents a list of CSSStyleSheet objects.
An instance of this object can be returned by Document.styleSheets.
It is an array-like object but can't be iterated over using Array
methods.
However it can be iterated over in a standard for
loop over its indices,
or converted to an Array
.
Note: Typically list interfaces like
StyleSheetList
wrap aroundArray
types, so you can useArray
methods on them. This is not the case here for historical reasons. However, you can convertStyleSheetList
to anArray
in order to use those methods (see the example below).
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The
length
read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
item(
int index) → CSSStyleSheet? -
The
item()
method of the StyleSheetList interface returns a single CSSStyleSheet object. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited