dart / 2 / dart-convert / latin1decoder / latin1decoder.html

Latin1Decoder constructor

const Latin1Decoder(
  1. {bool allowInvalid = false}
)

Instantiates a new Latin1Decoder.

The optional allowInvalid argument defines how convert deals with invalid bytes.

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

Implementation

const Latin1Decoder({bool allowInvalid = false})
    : super(allowInvalid, _latin1Mask);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-convert/Latin1Decoder/Latin1Decoder.html