Ref<T> class Null safety

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

Implementers

Constructors

Ref(T data)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value ↔ T
获取值
read / write

Methods

collect() → dynamic
自动收集依赖(请勿调用)
dispose(dynamic instance) → dynamic
自动清除stream缓存(请勿调用)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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