InMemoryLiveKitTextStreamWriter class

In-memory implementation of LiveKitTextStreamWriter.

Implemented types

Constructors

InMemoryLiveKitTextStreamWriter({required String topic, Map<String, String>? attributes, String? senderIdentity})
Creates an InMemoryLiveKitTextStreamWriter.

Properties

attributes → Map<String, String>
Attributes attached when opening the text stream.
final
chunks → List<String>
Chunks written to this stream.
final
hashCode → int
The hash code for this object.
no setterinherited
isClosed ↔ bool
Whether close has been called.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
senderIdentity → String?
Optional sender identity attributed to this stream.
final
topic → String
Topic name on which the text stream was opened.
final

Methods

close() → Future<void>
Closes the text stream.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(String text) → Future<void>
Writes incremental text to the open text stream.
override

Operators

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