Value<T> class final

ref: ObserverList

Inheritance

Constructors

Value(T data, {String debugLabel = ""})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeArgs List<TypeHook>
为了解决外部json程序无法获知Signal内部范型的问题,实验了一个类型钩子, 貌似可以解决此问题,目前还没想到其他更简单的方案。 json处理比较复杂,而且和Signal核心逻辑无关,还是把json、yaml等处理放在state.dart外部, 这样就需要一些机制可以拿到Map List的范型类型,比如: Value
no setteroverride
value ↔ T
getter/setter pair

Methods

call() → T
更短的用法
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() → T
toString() String
A string representation of this object.
override

Operators

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