BaseStreamWriter<T, InfoType extends BaseStreamInfo> class

Implementers

Constructors

BaseStreamWriter({required StreamWriter<T> writableStream, required InfoType info, Future<void> onClose()?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
info → InfoType
final
onClose ↔ Future<void> Function()?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
writableStream → StreamWriter<T>
final

Methods

close() → Future<void>
Ends the stream once the writes already issued have finished. Closing again does nothing more and completes with the first close.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(T chunk) → Future<void>
Writes chunk to the stream. Fails with DataStreamErrorReason.AlreadyClosed once close has been called.

Operators

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