WebViewElement class abstract
A web view widget for showing html content.
- Implementers
Constructors
-
WebViewElement(dynamic context, {String? initialUrl, JavascriptMode javascriptMode = JavascriptMode.unrestricted, Set<
JavascriptChannel> ? javascriptChannels, Set<Factory< ? gestureRecognizers, bool debuggingEnabled = false, String userAgent = DEFAULT_USER_AGENT, AutoMediaPlaybackPolicy initialMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types})OneSequenceGestureRecognizer> > - Creates a new web view.
Properties
-
attributes
→ Map<
String, String> -
finalinherited
- boundingClientRect → BoundingClientRect
-
no setterinherited
-
childNodes
↔ List<
Node> -
getter/setter pairinherited
-
children
→ List<
Element> -
no setterinherited
-
classList
→ List<
String> -
no setterinherited
- className ↔ String
-
getter/setter pairinherited
- clientHeight → int
-
no setterinherited
- clientLeft → int
-
no setterinherited
- clientTop → int
-
no setterinherited
- clientWidth → int
-
no setterinherited
- contextId → int?
-
no setterinherited
- debuggingEnabled → bool
-
Controls whether WebView debugging is enabled.
final
- disposed → bool
-
no setterinherited
-
eventPath
→ List<
EventTarget> -
no setterinherited
- firstChild → Node
-
no setterinherited
- flutterElement ↔ KrakenElementToFlutterElementAdaptor?
-
getter/setter pairinherited
- flutterWidget ↔ KrakenElementToWidgetAdaptor?
-
getter/setter pairinherited
- forceToRepaintBoundary ← bool
-
no getterinherited
-
The value used for the HTTP User-Agent: request header.
A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.
final
-
gestureRecognizers
→ Set<
Factory< ?OneSequenceGestureRecognizer> > -
Which gestures should be consumed by the web view.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double
-
getter/setter pair
- initialMediaPlaybackPolicy → AutoMediaPlaybackPolicy
-
Which restrictions apply on automatic media playback.
final
- initialUrl ↔ String?
-
The url that WebView loaded at first time.
getter/setter pair
-
inlineStyle
→ Map<
String, dynamic> -
The inline style is a map of style property name to style property value.
finalinherited
- isConnected → bool
-
no setterinherited
- isRendererAttached → bool
-
no setterinherited
- isRepaintBoundary → bool
-
Whether should as a repaintBoundary for this element when style changed
no setterinherited
-
javascriptChannels
→ Set<
JavascriptChannel> ? -
The set of JavascriptChannels available to JavaScript code running in the web view.
final
- javascriptMode → JavascriptMode
-
Whether Javascript execution is enabled.
final
- lastChild → Node
-
no setterinherited
-
A delegate function that decides how to handle navigation actions.
final
- nextSibling → Node?
-
no setterinherited
- nodeName → String
-
no setterinherited
- nodeType ↔ NodeType
-
getter/setter pairinherited
- offsetHeight → int
-
no setterinherited
- offsetLeft → int
-
no setterinherited
- offsetParent → Element?
-
no setterinherited
- offsetTop → int
-
no setterinherited
- offsetWidth → int
-
no setterinherited
- ownerDocument ↔ Document
-
getter/setter pairinherited
- parentElement → Element?
-
The Node.parentElement read-only property returns the DOM node's parent Element,
or null if the node either has no parent, or its parent isn't a DOM Element.
no setterinherited
- parentEventTarget → EventTarget?
-
no setterinherited
- parentNode ↔ Node?
-
The Node.parentNode read-only property returns the parent of the specified node in the DOM tree.
getter/setter pairinherited
- platformRenderBox ↔ RenderBox?
-
The webview render box itself.
getter/setter pair
- pointer → dynamic
-
no setterinherited
- previousSibling → Node?
-
no setterinherited
- renderBoxModel ↔ RenderBoxModel?
-
getter/setter pairinherited
- renderer → RenderBox?
-
no setterinherited
- renderStyle ↔ CSSRenderStyle
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollHeight → int
-
no setterinherited
- scrollLeft ↔ double
-
getter/setter pairinherited
- scrollTop ↔ double
-
getter/setter pairinherited
- scrollWidth → int
-
no setterinherited
- size → dynamic
-
no setter
- sizedBox ↔ RenderConstrainedBox?
-
The constrained to platformed render box, applying width and height.
getter/setter pair
- src ↔ String
-
getter/setter pair
- style ↔ CSSStyleDeclaration
-
The style of the element, not inline style.
getter/setter pairinherited
- tagName ↔ String
-
getter/setter pairinherited
- userAgent → String
-
When null the platform's webview default is used for the User-Agent header.
final
- width ↔ double
-
getter/setter pair
Methods
-
addChild(
RenderBox child) → void -
inherited
-
addEventListener(
String eventType, EventHandler handler) → void -
inherited
-
addToContainingBlock(
) → void -
inherited
-
appendChild(
Node child) → Node -
inherited
-
attachTo(
Node parent, {RenderBox? after}) → void -
Attach a renderObject to parent.
inherited
-
blur(
) → void -
Moves the focus to the viewport. Use of this method is discouraged;
if you want to focus the viewport, call the focus() method on the Document's document element.
https://html.spec.whatwg.org/multipage/interaction.html#dom-blur
inherited
-
childrenChanged(
) → void -
inherited
-
clearEventResponder(
RenderEventListenerMixin renderBox) → void -
inherited
-
click(
) → void -
inherited
-
connectedCallback(
) → void -
inherited
-
contains(
Node child) → bool -
inherited
-
createRenderer(
) → RenderBox -
Creates an instance of the RenderObject class that this
RenderObjectNode
represents, using the configuration described by thisRenderObjectNode
.inherited -
createScrollingContentLayout(
) → RenderLayoutBox -
inherited
-
debugHideHighlight(
) → void -
inherited
-
debugHighlight(
) → void -
inherited
-
didAttachRenderer(
) → void -
didDetachRenderer(
) → void -
inherited
-
disconnectedCallback(
) → void -
inherited
-
dispatchEvent(
Event event) → void -
inherited
-
dispose(
) → void -
Release any resources held by this node.
inherited
-
disposeScrollable(
) → void -
inherited
-
ensureChildAttached(
) → void -
Ensure child and child's child render object is attached.
inherited
-
ensureEventResponderBound(
) → void -
inherited
-
findDirectPositionAbsoluteChildren(
) → List< Element> -
inherited
-
findNestedPositionAbsoluteChildren(
) → List< Element> -
inherited
-
flushLayout(
) → void -
inherited
-
focus(
) → void -
Moves the focus to the element.
https://html.spec.whatwg.org/multipage/interaction.html#dom-focus
inherited
-
getAttribute(
String qualifiedName) → String? -
inherited
-
getBindingProperty(
String propertyName) → dynamic -
getBoundingClientRect(
) → BoundingClientRect -
inherited
-
getContainingBlockRenderBox(
) → RenderBox? -
inherited
-
getEventHandlers(
) → Map< String, List< EventHandler> > -
inherited
-
getEventTarget(
) → EventTarget -
inherited
-
handleAppear(
) → void -
inherited
-
handleDisappear(
) → void -
inherited
-
handleIntersectionChange(
IntersectionObserverEntry entry) → void -
inherited
-
hasAttribute(
String qualifiedName) → bool -
inherited
-
hasEventListener(
String type) → bool -
inherited
-
insertBefore(
Node child, Node referenceNode) → Node -
inherited
-
internalSetAttribute(
String qualifiedName, String value) → void -
inherited
-
invokeBindingMethod(
String method, List args) → dynamic -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDetach(
) → void -
onFocus(
) → void -
onPageFinished(
String? url) → void - Invoked when a page has finished loading.
-
onPageStarted(
String? url) → void - Invoked when a page starts loading.
-
onPostMessage(
String? message) → void -
onWebViewCreated(
WebViewController controller) → void - If not null invoked once the web view is created.
-
recalculateNestedStyle(
) → void -
inherited
-
recalculateStyle(
) → void -
inherited
-
removeAttribute(
String qualifiedName) → void -
inherited
-
removeChild(
Node child) → Node -
inherited
-
removeEventListener(
String eventType, EventHandler handler) → void -
inherited
-
replaceChild(
Node newNode, Node oldNode) → Node? -
inherited
-
scroll(
double x, double y) → void -
inherited
-
scrollBy(
double x, double y) → void -
inherited
-
scrollingContentBoxStyleListener(
String property, String? original, String present) → void -
inherited
-
scrollTo(
double x, double y) → void -
inherited
-
setAttribute(
String key, String value) → void -
setBindingProperty(
String propertyName, dynamic value) → void -
setInlineStyle(
String property, String value) → void -
inherited
-
setRenderStyle(
String property, String present) → void -
inherited
-
setRenderStyleProperty(
String name, dynamic value) → void -
inherited
-
setStyle(
String property, dynamic value) → void -
inherited
-
toBlob(
{double? devicePixelRatio}) → Future< Uint8List> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unmountRenderObject(
{bool deep = false}) → void -
Unmount
renderBoxModel
.inherited -
updateOverflowRenderBox(
) → void -
inherited
-
updateRenderBoxModelWithOverflowX(
ScrollListener scrollListener) → void -
inherited
-
updateRenderBoxModelWithOverflowY(
ScrollListener scrollListener) → void -
inherited
-
updateScrollingContentBox(
) → void -
inherited
-
willAttachRenderer(
) → void -
The renderObject will be / has been insert into parent. You can apply properties
to renderObject.
inherited
-
willDetachRenderer(
) → void -
A render object previously associated with this Node will be / has been removed
from the tree. The given RenderObject will be of the same type as
returned by this object's createRenderer.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- platform ↔ WebViewPlatform?
-
The WebView platform that's used by this WebView.
getter/setter pair