Ref<T> class

Ref是一个Map类型的响应式数据

Implementers

Constructors

Ref(T data)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
获取值
getter/setter pair

Methods

collect() → dynamic
自动收集依赖(请勿调用)
dispose(dynamic instance) → dynamic
自动清除stream缓存(请勿调用)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(dynamic modifyier()) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

update(dynamic handler(), [UpdateOptions? options]) → dynamic
传入一个Ref数组, 更新所有关联的Widget