cast<S> method

  1. @override
StreamChannel<S> cast<S>()
override

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));