Returns the decoder of this, converting from T to S.
It may be stateful an should not be reused.
Source
Latin1Decoder get decoder =>
_allowInvalid ? const Latin1Decoder(allowInvalid: true)
: const Latin1Decoder(allowInvalid: false);