GbkDecoder constructor

const GbkDecoder({
  1. bool allowMalformed = false,
})

Instantiates a new GbkDecoder.

The optional allowMalformed argument defines how convert deals with invalid or unterminated character sequences.

If it is true convert replaces invalid (or unterminated) character sequences with the Unicode Replacement character U+FFFD (�). Otherwise it throws a FormatException.

Implementation

const GbkDecoder({bool allowMalformed = false})
    : _allowMalformed = allowMalformed;