HtmlDocument class Null safety

Inheritance
Annotations
  • @Native("HTMLDocument")

Properties

activeElement Element?
read-only, inherited
addressSpace String?
read-only, inherited
baseUri String?
@JSName('baseURI'), read-only, inherited
body BodyElement?
read / write
childNodes List<Node>
A list of this node's children. [...]
@Creates('NodeList'), @Returns('NodeList'), read-only, inherited
contentType String?
read-only, inherited
read / write, inherited
currentScript ScriptElement?
read-only, inherited
documentElement Element?
read-only, inherited
domain String?
read-only, inherited
firstChild Node?
The first child of this node. [...]
read-only, inherited
fonts FontFaceSet?
read-only, inherited
fullscreenElement Element?
read-only, inherited
fullscreenEnabled bool?
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
read-only
hidden bool?
read-only, inherited
implementation DomImplementation?
read-only, inherited
isConnected bool?
read-only, inherited
lastChild Node?
The last child of this node. [...]
read-only, inherited
lastModified String?
read-only
nextNode Node?
The next sibling node. [...]
@JSName('nextSibling'), read-only, inherited
nodeName String?
The name of this node. [...]
read-only, inherited
nodes List<Node>
A modifiable list of this node's children.
read / write, inherited
nodeType int
The type of node. [...]
read-only, inherited
nodeValue String?
The value of this node. [...]
read-only, inherited
on Events
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
read-only, inherited
onAbort Stream<Event>
Stream of abort events handled by this Document.
read-only, inherited
onBeforeCopy Stream<Event>
Stream of beforecopy events handled by this Document.
read-only, inherited
onBeforeCut Stream<Event>
Stream of beforecut events handled by this Document.
read-only, inherited
onBeforePaste Stream<Event>
Stream of beforepaste events handled by this Document.
read-only, inherited
onBlur Stream<Event>
Stream of blur events handled by this Document.
read-only, inherited
onCanPlay Stream<Event>
read-only, inherited
onCanPlayThrough Stream<Event>
read-only, inherited
onChange Stream<Event>
Stream of change events handled by this Document.
read-only, inherited
onClick Stream<MouseEvent>
Stream of click events handled by this Document.
read-only, inherited
onContextMenu Stream<MouseEvent>
Stream of contextmenu events handled by this Document.
read-only, inherited
onCopy Stream<ClipboardEvent>
Stream of copy events handled by this Document.
read-only, inherited
onCut Stream<ClipboardEvent>
Stream of cut events handled by this Document.
read-only, inherited
onDoubleClick Stream<Event>
Stream of doubleclick events handled by this Document.
@DomName('Document.ondblclick'), read-only, inherited
onDrag Stream<MouseEvent>
Stream of drag events handled by this Document.
read-only, inherited
onDragEnd Stream<MouseEvent>
Stream of dragend events handled by this Document.
read-only, inherited
onDragEnter Stream<MouseEvent>
Stream of dragenter events handled by this Document.
read-only, inherited
onDragLeave Stream<MouseEvent>
Stream of dragleave events handled by this Document.
read-only, inherited
onDragOver Stream<MouseEvent>
Stream of dragover events handled by this Document.
read-only, inherited
onDragStart Stream<MouseEvent>
Stream of dragstart events handled by this Document.
read-only, inherited
onDrop Stream<MouseEvent>
Stream of drop events handled by this Document.
read-only, inherited
onDurationChange Stream<Event>
read-only, inherited
onEmptied Stream<Event>
read-only, inherited
onEnded Stream<Event>
read-only, inherited
onError Stream<Event>
Stream of error events handled by this Document.
read-only, inherited
onFocus Stream<Event>
Stream of focus events handled by this Document.
read-only, inherited
onFullscreenChange Stream<Event>
Stream of fullscreenchange events handled by this Document.
read-only, inherited
onFullscreenError Stream<Event>
Stream of fullscreenerror events handled by this Document.
read-only, inherited
onInput Stream<Event>
Stream of input events handled by this Document.
read-only, inherited
onInvalid Stream<Event>
Stream of invalid events handled by this Document.
read-only, inherited
onKeyDown Stream<KeyboardEvent>
Stream of keydown events handled by this Document.
read-only, inherited
onKeyPress Stream<KeyboardEvent>
Stream of keypress events handled by this Document.
read-only, inherited
onKeyUp Stream<KeyboardEvent>
Stream of keyup events handled by this Document.
read-only, inherited
onLoad Stream<Event>
Stream of load events handled by this Document.
read-only, inherited
onLoadedData Stream<Event>
read-only, inherited
onLoadedMetadata Stream<Event>
read-only, inherited
onMouseDown Stream<MouseEvent>
Stream of mousedown events handled by this Document.
read-only, inherited
onMouseEnter Stream<MouseEvent>
Stream of mouseenter events handled by this Document.
read-only, inherited
onMouseLeave Stream<MouseEvent>
Stream of mouseleave events handled by this Document.
read-only, inherited
onMouseMove Stream<MouseEvent>
Stream of mousemove events handled by this Document.
read-only, inherited
onMouseOut Stream<MouseEvent>
Stream of mouseout events handled by this Document.
read-only, inherited
onMouseOver Stream<MouseEvent>
Stream of mouseover events handled by this Document.
read-only, inherited
onMouseUp Stream<MouseEvent>
Stream of mouseup events handled by this Document.
read-only, inherited
onMouseWheel Stream<WheelEvent>
Stream of mousewheel events handled by this Document.
read-only, inherited
onPaste Stream<ClipboardEvent>
Stream of paste events handled by this Document.
read-only, inherited
onPause Stream<Event>
read-only, inherited
onPlay Stream<Event>
read-only, inherited
onPlaying Stream<Event>
read-only, inherited
onPointerLockChange Stream<Event>
read-only, inherited
onPointerLockError Stream<Event>
read-only, inherited
onRateChange Stream<Event>
read-only, inherited
onReadyStateChange Stream<Event>
Stream of readystatechange events handled by this Document.
read-only, inherited
onReset Stream<Event>
Stream of reset events handled by this Document.
read-only, inherited
onResize Stream<Event>
read-only, inherited
onScroll Stream<Event>
Stream of scroll events handled by this Document.
read-only, inherited
onSearch Stream<Event>
Stream of search events handled by this Document.
read-only, inherited
onSecurityPolicyViolation Stream<SecurityPolicyViolationEvent>
Stream of securitypolicyviolation events handled by this Document.
read-only, inherited
onSeeked Stream<Event>
read-only, inherited
onSeeking Stream<Event>
read-only, inherited
onSelect Stream<Event>
Stream of select events handled by this Document.
read-only, inherited
onSelectionChange Stream<Event>
Stream of selectionchange events handled by this Document.
read-only, inherited
onSelectStart Stream<Event>
Stream of selectstart events handled by this Document.
read-only, inherited
onStalled Stream<Event>
read-only, inherited
onSubmit Stream<Event>
Stream of submit events handled by this Document.
read-only, inherited
onSuspend Stream<Event>
read-only, inherited
onTimeUpdate Stream<Event>
read-only, inherited
onTouchCancel Stream<TouchEvent>
Stream of touchcancel events handled by this Document.
read-only, inherited
onTouchEnd Stream<TouchEvent>
Stream of touchend events handled by this Document.
read-only, inherited
onTouchMove Stream<TouchEvent>
Stream of touchmove events handled by this Document.
read-only, inherited
onTouchStart Stream<TouchEvent>
Stream of touchstart events handled by this Document.
read-only, inherited
onVisibilityChange Stream<Event>
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only
onVolumeChange Stream<Event>
read-only, inherited
onWaiting Stream<Event>
read-only, inherited
origin String?
read-only, inherited
ownerDocument Document?
The document this node belongs to. [...]
read-only, inherited
parent Element?
The parent element of this node. [...]
@JSName('parentElement'), read-only, inherited
parentNode Node?
The parent node of this node. [...]
read-only, inherited
pointerLockElement Element?
read-only, inherited
preferredStylesheetSet String?
read-only
previousNode Node?
The previous sibling node. [...]
@JSName('previousSibling'), read-only, inherited
readyState String?
read-only, inherited
referrer String
read-only
rootElement SvgSvgElement?
read-only, inherited
rootScroller Element?
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollingElement Element?
read-only, inherited
selectedStylesheetSet String?
read / write
styleSheets List<StyleSheet>?
read-only
suborigin String?
read-only, inherited
supportsRegister bool
Deprecated: use supportsRegisterElement instead.
read-only, inherited
supportsRegisterElement bool
Checks if registerElement is supported on the current platform.
read-only, inherited
text String?
All text within this node and its descendents. [...]
@JSName('textContent'), read / write, inherited
timeline DocumentTimeline?
read-only, inherited
title String
read / write
visibilityState String
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only, inherited
window WindowBase?
read-only, inherited

Methods

addEventListener(String type, EventListener? listener, [bool? useCapture]) → void
inherited
adoptNode(Node node) Node
inherited
append(Node node) Node
Adds a node to the end of the child nodes list of this node. [...]
@JSName('appendChild'), inherited
caretRangeFromPoint(int? x, int? y) Range
UNSTABLE: Chrome-only - create a Range from the given point.
@Unstable()
clone(bool? deep) Node
Returns a copy of this node. [...]
@JSName('cloneNode'), inherited
contains(Node? other) bool
Returns true if this node contains the specified node. [...]
inherited
createDocumentFragment() DocumentFragment
inherited
createElement(String tagName, [String? typeExtension]) Element
inherited
createElementNS(String namespaceURI, String qualifiedName, [String? typeExtension]) Element
inherited
createElementUpgrader(Type type, {String? extendsTag}) ElementUpgrader
Creates an element upgrader which can be used to change the Dart wrapper type for elements. [...]
createRange() Range
inherited
dispatchEvent(Event event) bool
inherited
elementFromPoint(int x, int y) Element?
elementsFromPoint(int x, int y) List<Element>
inherited
execCommand(String commandId, [bool? showUI, String? value]) bool
inherited
exitFullscreen() → void
Returns page to standard layout. [...]
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI), override
exitPointerLock() → void
inherited
getAnimations() List<Animation>
inherited
getElementById(String elementId) Element?
inherited
getElementsByClassName(String classNames) List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getElementsByName(String elementName) List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getElementsByTagName(String localName) List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getRootNode([Map? options]) Node
inherited
hasChildNodes() bool
Returns true if this node has any children. [...]
inherited
importNode(Node node, [bool? deep]) Node
inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → void
Inserts all of the nodes into this node directly before refChild. [...]
inherited
insertBefore(Node node, Node? child) Node
Inserts all of the nodes into this node directly before refChild. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
queryCommandEnabled(String commandId) bool
inherited
queryCommandIndeterm(String commandId) bool
inherited
queryCommandState(String commandId) bool
inherited
queryCommandSupported(String commandId) bool
inherited
queryCommandValue(String commandId) String
inherited
querySelector(String selectors) Element?
Finds the first descendant element of this document that matches the specified group of selectors. [...]
inherited
querySelectorAll<T extends Element>(String selectors) ElementList<T>
Finds all descendant elements of this document that match the specified group of selectors. [...]
inherited
register(String tag, Type customElementClass, {String? extendsTag}) → void
Deprecated*: use registerElement instead.
registerElement(String tag, Type customElementClass, {String? extendsTag}) → void
inherited
registerElement2(String tag, [Map? options]) Function
Register a custom subclass of Element to be instantiatable by the DOM. [...]
override
remove() → void
Removes this node from the DOM.
inherited
removeEventListener(String type, EventListener? listener, [bool? useCapture]) → void
inherited
replaceWith(Node otherNode) Node
Replaces this node with another node.
inherited
toString() String
Print out a String representation of this Node.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

visibilityChangeEvent → const EventStreamProvider<Event>
Static factory designed to expose visibilitychange events to event handlers that are not necessarily instances of Document. [...]
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10')
const _CustomEventStreamProvider<Event>(_determineVisibilityChangeEventType)