Text class
- Inheritance
- Implementers
- Annotations
- @Native("Text")
Constructors
Properties
- assignedSlot → SlotElement? read-only
- baseUri → String? @JSName('baseURI'), read-only, inherited
- childNodes → List<
Node> @Creates('NodeList'), @Returns('NodeList'), read-only, inherited - A list of this node's children. [...]
- data ↔ String? read / write, inherited
- firstChild → Node? read-only, inherited
- The first child of this node. [...]
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- isConnected → bool? read-only, inherited
- lastChild → Node? read-only, inherited
- The last child of this node. [...]
- length → int? read-only, inherited
- nextElementSibling → Element? read-only, inherited
- nextNode → Node? @JSName('nextSibling'), read-only, inherited
- The next sibling node. [...]
- nodeName → String? read-only, inherited
- The name of this node. [...]
- nodes ↔ List<
Node> read / write, inherited - A modifiable list of this node's children.
- nodeType → int read-only, inherited
- The type of node. [...]
- nodeValue → String? read-only, inherited
- The value of this node. [...]
- on → Events read-only, inherited
- This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- ownerDocument → Document? read-only, inherited
- The document this node belongs to. [...]
- parent → Element? @JSName('parentElement'), read-only, inherited
- The parent element of this node. [...]
- parentNode → Node? read-only, inherited
- The parent node of this node. [...]
- previousElementSibling → Element? read-only, inherited
- previousNode → Node? @JSName('previousSibling'), read-only, inherited
- The previous sibling node. [...]
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- text ↔ String? @JSName('textContent'), read / write, inherited
- All text within this node and its descendents. [...]
- wholeText → String read-only
Methods
- addEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - after(
Object nodes) → void inherited - append(
Node node) → Node @JSName('appendChild'), inherited - Adds a node to the end of the child nodes list of this node. [...]
- appendData(
String data) → void inherited - before(
Object nodes) → void inherited - clone(
bool? deep) → Node @JSName('cloneNode'), inherited - Returns a copy of this node. [...]
- contains(
Node? other) → bool inherited - Returns true if this node contains the specified node. [...]
- deleteData(
int offset, int count) → void inherited - dispatchEvent(
Event event) → bool inherited - getDestinationInsertionPoints(
) → List< Node> @Creates('NodeList'), @Returns('NodeList') - getRootNode(
[Map? options]) → Node inherited - hasChildNodes(
) → bool inherited - Returns true if this node has any children. [...]
- insertAllBefore(
Iterable< Node> newNodes, Node refChild) → voidinherited - Inserts all of the nodes into this node directly before refChild. [...]
- insertBefore(
Node node, Node? child) → Node inherited - Inserts all of the nodes into this node directly before refChild. [...]
- insertData(
int offset, String data) → void inherited - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- remove(
) → void inherited - Removes this node from the DOM.
- removeEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - replaceData(
int offset, int count, String data) → void inherited - replaceWith(
Node otherNode) → Node inherited - Replaces this node with another node.
- splitText(
int offset) → Text - substringData(
int offset, int count) → String inherited - toString(
) → String inherited - Print out a String representation of this Node.
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/Text-class.html