cast<RS, RT> method

  1. @override
StreamTransformer<RS, RT> cast<RS, RT>()
override

Provides a StreamTransformer<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 actually instances of RT.

Implementation

@override
StreamTransformer<RS, RT> cast<RS, RT>() {
  return StreamTransformer.castFrom(this);
}