IFrameElement class

The iframe element represents its nested browsing context.

The src attribute gives the URL of a page that the element's nested browsing context is to contain. The attribute, if present, must be a valid non-empty URL potentially surrounded by spaces. If the itemprop attribute is specified on an iframe element, then the src attribute must also be specified.

DOM interface:

Inheritance

Constructors

IFrameElement(dynamic context)

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.
finalinherited
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
gestureNavigationEnabled bool
The value used for the HTTP User-Agent: request header. A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.
finalinherited
gestureRecognizers Set<Factory<OneSequenceGestureRecognizer>>?
Which gestures should be consumed by the web view.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double
getter/setter pairinherited
initialMediaPlaybackPolicy AutoMediaPlaybackPolicy
Which restrictions apply on automatic media playback.
finalinherited
initialUrl String?
The url that WebView loaded at first time.
getter/setter pairinherited
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.
finalinherited
javascriptMode JavascriptMode
Whether Javascript execution is enabled.
finalinherited
lastChild → Node
no setterinherited
A delegate function that decides how to handle navigation actions.
finalinherited
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 pairinherited
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 setterinherited
sizedBox RenderConstrainedBox?
The constrained to platformed render box, applying width and height.
getter/setter pairinherited
src String
getter/setter pairinherited
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.
finalinherited
width double
getter/setter pairinherited

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 this RenderObjectNode.
inherited
createScrollingContentLayout() → RenderLayoutBox
inherited
debugHideHighlight() → void
inherited
debugHighlight() → void
inherited
didAttachRenderer() → void
inherited
didDetachRenderer() → void
inherited
disconnectedCallback() → void
inherited
dispatchEvent(Event event) → void
inherited
dispose() → void
Release any resources held by this node.
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
inherited
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDetach() → void
inherited
onFocus() → void
override
onPageFinished(String? url) → void
Invoked when a page has finished loading.
override
onPageStarted(String? url) → void
Invoked when a page starts loading.
override
onPostMessage(String? message) → void
override
onWebViewCreated(WebViewController controller) → void
If not null invoked once the web view is created.
override
postMessage(String message) Future<String?>
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
inherited
setBindingProperty(String propertyName, dynamic value) → void
inherited
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