firstChild property
Node?
get
firstChild
The read-only firstChild
property of the Node interface
returns the node's first child in the tree,
or null
if the node has no children.
If the node is a Document, this property returns the first node in the list of its direct children.
Note: This property returns any type of node that is the first child of this one. It may be a Text or a Comment node. If you want to get the first Element that is a child of another element, consider using Element.firstElementChild.
Implementation
external Node? get firstChild;