Pod<T> class
abstract
The base class for all pods.
A pod is a special identifier, that points to some state in a PodContainer.
It also contains configuration that determines how its state is read, or written (see WritablePod).
- Implementers
- Available Extensions
Constructors
- Pod()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isKeepAlive → bool
-
Check if this pod should keep alive
no setter
- name → String?
-
Debug name for this pod
no setter
- 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.
-
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.
-
read(
Ref< T> ref) → T - Used by the container to read the pods value.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited