StreamEntryDto class

Snapshot of a tracked stream's current state — what the panel renders in the Current value card.

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

StreamEntryDto({required String id, required String name, required String typeLabel, required String? lastValue, required String? lastError, required int listenerCount, required String? lastEmittedAt, required bool isClosed, required String? closedAt, required bool isInjectable, required bool isSubject})
Creates a stream-entry snapshot. Prefer StreamEntryDto.fromEntry.
StreamEntryDto.fromEntry(StreamEntry entry)
Builds a StreamEntryDto from an internal StreamEntry.
factory
StreamEntryDto.fromJson(Map<String, dynamic> json)
Deserialises a StreamEntryDto from JSON.
factory

Properties

closedAt String?
ISO-8601 timestamp of when the stream was closed, or null if open.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable identifier for the stream.
final
isClosed bool
Whether the stream has completed/closed.
final
isInjectable bool
Whether the tracked subject accepts panel-driven value injection.
final
isSubject bool
Whether the tracked value is a rxdart Subject (vs. a plain Stream).
final
lastEmittedAt String?
ISO-8601 timestamp of the last emission, or null if none yet.
final
lastError String?
String form of the most recent error, or null if none.
final
lastValue String?
JSON-encoded form of the latest emitted value, or null if none yet.
final
listenerCount int
Number of active listeners on the stream.
final
name String
Name the developer passed to .track('name').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeLabel String
Display string for the stream's value type (e.g. int, User).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this DTO to JSON.
toString() String
A string representation of this object.
inherited

Operators

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