StreamChannelCompleter<T> class Null safety

A channel where the source and destination are provided later.

The channel is a normal channel that can be listened to and that events can be added to immediately, but until setChannel is called it won't emit any events and all events added to it will be buffered.

Constructors

StreamChannelCompleter()

Properties

channel StreamChannel<T>
The channel for this completer.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setChannel(StreamChannel<T> channel) → void
Set a channel as the source and destination for channel.
setError(Object error, [StackTrace? stackTrace]) → void
Indicates that there was an error connecting the channel.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromFuture(Future<StreamChannel> channelFuture) StreamChannel
Convert a Future<StreamChannel> to a StreamChannel.