BloomDebugSnapshot class final
An immutable structured diagnostic snapshot of a reactive Bloom node, capturing its topology, lifecycle, and reactive state payload.
Constructors
-
BloomDebugSnapshot({required Bloom node, String? debugLabel, required Type nodeType, required int version, bool isActive = false, int targetCount = 0, Map<
String, dynamic> customProperties = const {}, BloomPhase phase = BloomPhase.empty, Object? data, Object? error, Object? emptyReason}) -
Creates an immutable diagnostic snapshot of a reactive
node.const
Properties
-
customProperties
→ Map<
String, dynamic> -
Node-specific diagnostic properties (e.g. active branch source for switched nodes,
or resource allocation status for managed nodes).
final
- data → Object?
-
The current data payload if hasData is true; otherwise null.
final
- debugLabel → String?
-
The developer-assigned debug label, if any.
final
- description → String
-
A formatted description of the dependency state.
no setter
- emptyReason → Object?
-
The empty reason payload if isEmpty is true; otherwise null.
final
- error → Object?
-
The current error payload if hasError is true; otherwise null.
final
- hasData → bool
-
Whether the node currently holds a valid data payload.
no setter
- hasError → bool
-
Whether the node is currently in an error state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTargets → bool
-
Whether this node currently has at least one active downstream target.
no setter
- isActive → bool
-
Whether this node is currently active in the LPDAG reactive graph.
final
- isEmpty → bool
-
Whether the node is currently in an uninitialized or empty state.
no setter
- name → String
-
The display name for this node, preferring debugLabel or falling back to nodeType.
no setter
- node → Bloom
-
The underlying Bloom reactive node instance.
final
- nodeType → Type
-
The runtime implementation class of the observed node.
final
- phase → BloomPhase
-
The operational phase of the observed reactive node.
final
- runtimeType → Type
-
The runtime type of the observed node, matching nodeType.
no setteroverride
- targetCount → int
-
The number of active downstream target edges connected to this node.
final
- version → int
-
The internal version of the observed node.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited