ElAnchorService class

Constructors

ElAnchorService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
keys List<String>
获取全部锚点名字
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getContext(String key) BuildContext?
获取锚点元素对象
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAnchor(String? key) → void
移除锚点
scrollTo(String? url) → void
滚动到锚点位置,如果 url 包含了 # 符号,则会自动解析字符串,否则直接当做 name 访问
setAnchor(String? key, GlobalKey<State<StatefulWidget>> value, {bool override = true}) → void
设置锚点
toString() String
A string representation of this object.
inherited

Operators

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