decode method
Decodes encoded
data.
The input is decoded as if by decoder.convert
.
Implementation
@override
String decode(List<int> encoded, {bool? allowInvalid}) {
var encoding = allowInvalid ?? this.allowInvalid
? const Windows1251Decoder(allowInvalid: true)
: const Windows1251Decoder(allowInvalid: false);
return encoding.convert(encoded);
}