cast<S> method
Returns a copy of this with the generic type coerced to S.
Implementation
@override
StreamChannel<S> cast<S>() => StreamChannel(
stream.cast(), StreamController(sync: true)..stream.cast<T>().pipe(sink));
Returns a copy of this with the generic type coerced to S.
@override
StreamChannel<S> cast<S>() => StreamChannel(
stream.cast(), StreamController(sync: true)..stream.cast<T>().pipe(sink));