setupStream<T> method
StreamData
setupStream<T>(
- Stream<
T> stream, { - dynamic onData,
- dynamic onSubscribed,
- dynamic onError,
- dynamic onCancel,
- dynamic transformData,
inherited
Implementation
@protected
StreamData setupStream<T>(
Stream<T> stream, {
onData,
onSubscribed,
onError,
onCancel,
transformData,
}) {
StreamData<T> streamData = StreamData<T>(
stream,
onData: onData,
onSubscribed: onSubscribed,
onError: onError,
onCancel: onCancel,
transformData: transformData,
);
streamData.initialise();
return streamData;
}