Element class abstract

Inheritance
Mixed-in types
Implementers

Constructors

Element(BindingContext? context, {Map<String, dynamic>? defaultStyle, bool isReplacedElement = false, bool isDefaultRepaintBoundary = false})

Properties

attributes Map<String, String>
final
boundingClientRect BoundingClientRect
no setter
childNodes List<Node>
getter/setter pairinherited
children List<Element>
no setterinherited
classList List<String>
no setter
className String
getter/setter pair
clientHeight int
no setterinherited
clientLeft int
no setterinherited
clientTop int
no setterinherited
clientWidth int
no setterinherited
contextId int?
no setterinherited
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 getter
hashCode int
The hash code for this object.
no setterinherited
inlineStyle Map<String, dynamic>
The inline style is a map of style property name to style property value.
final
isConnected bool
no setterinherited
isRendererAttached bool
no setterinherited
isRepaintBoundary bool
Whether should as a repaintBoundary for this element when style changed
no setter
lastChild Node
no setterinherited
nextSibling Node?
no setterinherited
nodeName String
no setteroverride
nodeType NodeType
getter/setter pairinherited
offsetHeight int
no setterinherited
offsetLeft int
no setter
offsetParent Element?
no setter
offsetTop int
no setter
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
pointer → dynamic
no setterinherited
previousSibling Node?
no setterinherited
renderBoxModel RenderBoxModel?
getter/setter pairinherited
renderer RenderBox?
no setteroverride
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
style CSSStyleDeclaration
The style of the element, not inline style.
getter/setter pair
tagName String
getter/setter pair

Methods

addChild(RenderBox child) → void
addEventListener(String eventType, EventHandler handler) → void
inherited
addToContainingBlock() → void
appendChild(Node child) Node
override
attachTo(Node parent, {RenderBox? after}) → void
Attach a renderObject to parent.
override
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
childrenChanged() → void
inherited
clearEventResponder(RenderEventListenerMixin renderBox) → void
inherited
click() → void
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.
override
createScrollingContentLayout() RenderLayoutBox
debugHideHighlight() → void
debugHighlight() → void
didAttachRenderer() → void
override
didDetachRenderer() → void
override
disconnectedCallback() → void
inherited
dispatchEvent(Event event) → void
inherited
dispose() → void
Release any resources held by this node.
override
disposeScrollable() → void
inherited
ensureChildAttached() → void
Ensure child and child's child render object is attached.
override
ensureEventResponderBound() → void
inherited
findDirectPositionAbsoluteChildren() List<Element>
findNestedPositionAbsoluteChildren() List<Element>
flushLayout() → void
focus() → void
Moves the focus to the element. https://html.spec.whatwg.org/multipage/interaction.html#dom-focus
getAttribute(String qualifiedName) String?
getBindingProperty(String key) → dynamic
override
getBoundingClientRect() BoundingClientRect
getContainingBlockRenderBox() RenderBox?
getEventHandlers() Map<String, List<EventHandler>>
inherited
getEventTarget() EventTarget
inherited
handleAppear() → void
inherited
handleDisappear() → void
inherited
handleIntersectionChange(IntersectionObserverEntry entry) → void
inherited
hasAttribute(String qualifiedName) bool
hasEventListener(String type) bool
inherited
insertBefore(Node child, Node referenceNode) Node
override
internalSetAttribute(String qualifiedName, String value) → void
invokeBindingMethod(String method, List args) → dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recalculateNestedStyle() → void
recalculateStyle() → void
removeAttribute(String qualifiedName) → void
removeChild(Node child) Node
override
removeEventListener(String eventType, EventHandler handler) → void
inherited
replaceChild(Node newNode, Node oldNode) Node?
override
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 qualifiedName, String value) → void
setBindingProperty(String key, dynamic value) → void
override
setInlineStyle(String property, String value) → void
setRenderStyle(String property, String present) → void
setRenderStyleProperty(String name, dynamic value) → void
setStyle(String property, dynamic value) → void
toBlob({double? devicePixelRatio}) Future<Uint8List>
toString() String
A string representation of this object.
inherited
unmountRenderObject({bool deep = false}) → void
Unmount renderBoxModel.
override
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.
override
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.
override

Operators

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