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