RefSlot<T> class
Constructors
-
RefSlot(String name, AppStateProtocol state)
-
(en) Do not call this constructor directly.
It is designed to be called internally by RefAppState.
Properties
-
caster
→ T Function(dynamic value)?
-
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
name
→ String
-
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ AppStateProtocol
-
finalinherited
Methods
-
get()
→ T
-
(en) Returns this slot's current reference.
The slot must be initialized before calling this method.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
set(T value)
→ void
-
(en) Set value to this slot.
Any listeners associated with the slot will be notified of the change.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(T builder(T ref))
→ void
-
(en) Update the value using the reference value.
Any listeners associated with the slot will be notified of the change.
override