dom library

Classes

AnchorElement
AnimationPlayerElement
AppearEvent
AudioElement
BodyElement
BoundingClientRect
CameraPreviewElement
CanvasElement
CloseEvent
reference: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/CloseEvent
ColorSchemeChangeEvent
Comment
CookieManager
Manages cookies pertaining to all WebViews.
CustomEvent
reference: http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#interface-CustomEvent Attention: Detail now only can be a string.
CustomEventInit
DisappearEvent
DivElement
Document
EditableTextDelegate
Element
ElementManager
ElementsBindingObserver
This class can be extended directly, to get default behaviors for all of the handlers, or can used with the implements keyword, in which case all the handlers must be implemented (and the analyzer will list those that have been omitted).
ElementsFlutterBinding
A concrete binding for applications based on the elements framework. [...]
Event
reference: https://developer.mozilla.org/zh-CN/docs/Web/API/Event
EventInit
EventTarget
IFrameElement
ImageElement
InputElement
InputEvent
IntersectionChangeEvent
JavascriptChannel
A named channel for receiving messaged from JavaScript code running inside a web view.
MediaError
MediaErrorCode
MessageEvent
reference: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent
Information about a navigation action that is about to be executed.
Node
ObjectElement
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object
ObjectElementClient
ObjectElementHost
ParagraphElement
PreElement
RenderCanvasPaint
RenderObjectNode
RenderObjectNode provide the renderObject related abstract life cycle for Node or Elements, which wrap RenderObjects, which provide the actual rendering of the application.
RenderOffsetBox
RenderWebViewBoundaryBox
SpanElement
StrongElement
TextNode
Touch
reference: https://w3c.github.io/touch-events/#dom-touch
TouchEvent
reference: https://w3c.github.io/touch-events/#touchevent-interface
TouchList
reference: https://w3c.github.io/touch-events/#touchlist-interface
VideoElement
WebViewController
Controls a WebView. [...]
WebViewElement
A web view widget for showing html content.
Window

Mixins

ElementBase
ElementsBinding
The glue between the elements layer and the Flutter engine.
EventHandlerMixin

Constants

ANCHOR → const String
'A'
ANIMATION_PLAYER → const String
'ANIMATION-PLAYER'
ANIMATION_TYPE_FLARE → const String
'flare'
AUDIO → const String
'AUDIO'
blurSelection → const TextSelection
TextSelection.collapsed(offset: -1)
BODY → const String
'BODY'
BODY_ID → const int
-1
CAMERA_PREVIEW → const String
'CAMERA-PREVIEW'
CANVAS → const String
'CANVAS'
DATA → const String
'data'
DIV → const String
'DIV'
DOCUMENT_ID → const int
-3
ELEMENT_DEFAULT_HEIGHT → const String
'150px'
ELEMENT_DEFAULT_HEIGHT_IN_PIXEL → const double
150.0
ELEMENT_DEFAULT_WIDTH → const String
Defined by W3C Standard, Most element's default width is 300 in pixel, height is 150 in pixel.
'300px'
ELEMENT_DEFAULT_WIDTH_IN_PIXEL → const double
300.0
EVENT_APPEAR → const String
'appear'
EVENT_CAN_PLAY → const String
'canplay'
EVENT_CAN_PLAY_THROUGH → const String
'canplaythrough'
EVENT_CANCEL → const String
'cancel'
EVENT_CHANGE → const String
'change'
EVENT_CLICK → const String
'click'
EVENT_CLOSE → const String
'close'
EVENT_COLOR_SCHEME_CHANGE → const String
'colorschemechange'
EVENT_DISAPPEAR → const String
'disappear'
EVENT_DOM_CONTENT_LOADED → const String
'DOMContentLoaded'
EVENT_ENDED → const String
'ended'
EVENT_ERROR → const String
'error'
EVENT_FINISH → const String
'finish'
EVENT_FOCUS → const String
'focus'
EVENT_INPUT → const String
'input'
EVENT_INTERSECTION_CHANGE → const String
'intersectionchange'
EVENT_LOAD → const String
'load'
EVENT_MEDIA_ERROR → const String
'mediaerror'
EVENT_MESSAGE → const String
'message'
EVENT_OPEN → const String
'open'
EVENT_PAUSE → const String
'pause'
EVENT_PLAY → const String
'play'
EVENT_SCROLL → const String
'scroll'
EVENT_SEEKED → const String
'seeked'
EVENT_SEEKING → const String
'seeking'
EVENT_TOUCH_CANCEL → const String
'touchcancel'
EVENT_TOUCH_END → const String
'touchend'
EVENT_TOUCH_MOVE → const String
'touchmove'
EVENT_TOUCH_START → const String
'touchstart'
EVENT_TRANSITION_CANCEL → const String
'transitioncancel'
EVENT_TRANSITION_END → const String
'transitionend'
EVENT_TRANSITION_RUN → const String
'transitionrun'
EVENT_TRANSITION_START → const String
'transitionstart'
EVENT_UNLOAD → const String
'unload'
EVENT_VOLUME_CHANGE → const String
'volumechange'
IFRAME → const String
'IFRAME'
IMAGE → const String
'IMG'
INPUT → const String
'INPUT'
OBJECT → const String
'OBJECT'
PARAGRAPH → const String
'P'
PRE → const String
'PRE'
SPAN → const String
'SPAN'
STRONG → const String
'STRONG'
STYLE → const String
'style'
TEXT_INPUT_TYPE_NUMBER → const TextInputType
TextInputType.numberWithOptions(signed: true)
UNKNOWN → const String
'UNKNOWN'
VIDEO → const String
'VIDEO'
WINDOW → const String
'WINDOW'
WINDOW_ID → const int
-2

Properties

cameras ↔ List<CameraDescription>
read / write
camerasDetected ↔ bool
read / write
nativeGetContext → Pointer<NativeFunction<Native_CanvasGetContext>>
final
nativeGetImageHeight → Pointer<NativeFunction<GetImageHeight>>
final
nativeGetImageNaturalHeight → Pointer<NativeFunction<GetImageHeight>>
final
nativeGetImageNaturalWidth → Pointer<NativeFunction<GetImageWidth>>
final
nativeGetImageWidth → Pointer<NativeFunction<GetImageWidth>>
final
nativeGetInputHeight → Pointer<NativeFunction<GetInputHeight>>
final
nativeGetInputWidth → Pointer<NativeFunction<GetInputWidth>>
final
nativeInputMethodBlur → Pointer<NativeFunction<InputElementMethodVoidCallback>>
final
nativeInputMethodFocus → Pointer<NativeFunction<InputElementMethodVoidCallback>>
final
nativePlay → Pointer<NativeFunction<Native_PlayAnimation>>
final
nativePostMessage → Pointer<NativeFunction<Native_IframePostMessage>>
The iframe element represents its nested browsing context. [...]
final

Functions

collapseWhitespace(String string, {bool collapseSpace = true, bool collapseLineBreaker = true}) → String
Utility function to collapse whitespace runs to single spaces and strip leading/trailing whitespace.
createRenderBoxModel(Element element, {RenderBoxModel prevRenderBoxModel, bool repaintSelf = false}) RenderBoxModel
createRenderLayout(Element element, {RenderLayoutBox prevRenderLayoutBox, bool repaintSelf = false}) RenderLayoutBox
detectCamera(String lens) → Future<CameraDescription>
getNodeTypeValue(NodeType nodeType) → int
https://dom.spec.whatwg.org/#dom-node-nodetype
getObjectElementClientFactory() ObjectElementClientFactory
getResolutionPreset(String preset) → ResolutionPreset
Returns the resolution preset from string.
isLineBreaker(String ch) → bool
isSpace(String ch) → bool
setObjectElementFactory(ObjectElementClientFactory factory) → void

Enums

BoxSizeType
A decision on how to handle a navigation request.
NodeType
StickyPositionType
TouchType

Typedefs

EventHandler(Event event) → void
JavascriptMessageHandler(JavascriptMessage message) → void
Callback type for handling messages sent from Javascript running in a web view.
Decides how to handle a specific navigation request. [...]
ObjectElementClientFactory(ObjectElementHost objectElementHost) ObjectElementClient
PageFinishedCallback(String url) → void
Signature for when a WebView has finished loading a page.
PageStartedCallback(String url) → void
Signature for when a WebView has started loading a page.
TestElement(Element element) → bool
ValueChanged<T>(T value) → void
WebViewCreatedCallback(WebViewController controller) → void
Optional callback invoked when a web view is first created. controller is the WebViewController for the created web view.