inverted property Null safety

Codec<T, S> inverted

Inverts this.

The encoder and decoder of the resulting codec are swapped.

Implementation

Codec<T, S> get inverted => _InvertedCodec<T, S>(this);