cast<RS, RT> method
override
Provides a Converter<RS, RT>
view of this stream transformer.
The resulting transformer will check at run-time that all conversion inputs are actually instances of S
, and it will check that all conversion output produced by this converter are actually instances of RT
.
Implementation
Converter<RS, RT> cast<RS, RT>() => Converter.castFrom<S, T, RS, RT>(this);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-convert/Converter/cast.html