Provides a StreamTrasformer<RS, RT>
view of this stream transformer.
The resulting transformer will check at run-time that all data events of the stream it transforms are actually instances of S
, and it will check that all data events produced by this transformer are acually instances of RT
.
StreamTransformer<RS, RT> cast<RS, RT>();
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-async/StreamTransformer/cast.html