ElementUtil class

Constructors

ElementUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

findAncestorElementOfWidgetType<T extends Widget>(Element? element) Element?
查找指定Widget类型的最近的父元素
findTexts(Element element) List<String>
查找元素下所有Text Widget的文本内容
traversal(BuildContext? context, ElementCallback callback) → void
遍历给定BuildContext下的所有子元素
traversalElement(Element element, ElementCallback callback) → void
递归遍历元素的所有子元素