Dart API Referencedart:htmlDOMTokenList

DOMTokenList Interface

This type represents a set of space-separated tokens. Commonly returned by HTMLElement.classList , HTMLLinkElement.relList, HTMLAnchorElement.relList or HTMLAreaElement.relList. It is indexed beginning with 0 as with JavaScript arrays. DOMTokenList is always case-sensitive.

Subinterfaces

DOMSettableTokenList

Methods

Code void add(String token) #

void add(String token);

Code bool contains(String token) #

bool contains(String token);

Code String item(int index) #

String item(int index);

Code void remove(String token) #

void remove(String token);

Code String toString() #

String toString();

Code bool toggle(String token) #

bool toggle(String token);

Fields

Code final int length #

final int length;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.