HtmlDocument class Null safety

Inheritance
Annotations
  • @Native("HTMLDocument")

Properties

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

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.
inherited
caretRangeFromPoint(int? x, int? y) Range
UNSTABLE: Chrome-only - create a Range from the given point.
clone(bool? deep) Node
Returns a copy of this node.
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.
override
exitPointerLock() → void
inherited
getAnimations() List<Animation>
inherited
getElementById(String elementId) Element?
inherited
getElementsByClassName(String classNames) List<Node>
inherited
getElementsByName(String elementName) List<Node>
inherited
getElementsByTagName(String localName) List<Node>
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 child) → void
Inserts all of the nodes into this node directly before child.
inherited
insertBefore(Node node, Node? child) Node
Inserts the given node into this node directly before child. If child is null, then the given node is inserted at the end of this node's child nodes.
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
Deprecated: This is a legacy API based on a deprecated Web Components v0.5 specification. Web Components v0.5 doesn't work on modern browsers and can only be used with a polyfill.
inherited
registerElement2(String tag, [Map? options]) Function
Deprecated: This is a legacy API based on a deprecated Web Components v0.5 specification. This method doesn't work on modern browsers and can only be used with a polyfill.
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.
const _CustomEventStreamProvider<Event>(_determineVisibilityChangeEventType)