StatePod<T> class
Represents an Pod that can be written to.
- Inheritance
-
- Object
- Pod<
T> - WritablePodBase<
T, T> - WritablePod<
T, T> - StatePod
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T
-
A initialValue for StatePod.
final
- isKeepAlive → bool
-
Check if this pod should keep alive
no setterinherited
- name → String?
-
Debug name for this pod
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getContext(
Node node) → Ref< T> -
Used by the container to create a read lifetime. Bit hacky, but allows us
to go from dynamic to T.
inherited
-
keepAlive(
) → WritablePod< T, T> -
Prevent the state of this pod from being automatically disposed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWithValue(
T value, {bool keepAlive = true}) → Override< T> -
Create an initial value override, which can be given to a PodScope or
PodContainer.
inherited
-
read(
Ref ref) → T -
Used by the container to read the pods value.
override
-
refreshable(
) → RefreshableWritablePod< T, T> -
Create a refreshable version of this pod, which can be used with
PodContainer.refresh or
PodContext.refresh
.inherited -
setName(
String name) → WritablePod< T, T> -
Set a name for debugging
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
GetPod get, SetPod set, SetSelf< T> setSelf, T value) → void -
When the pod receives a write with the given
value
, this method determines the outcome.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited