decodeUtf32be function
Produce a String from a sequence of UTF-32BE encoded bytes. The parameters allow an offset into a list of bytes (as int), limiting the length of the values be decoded and the ability of override the default Unicode replacement character. Set the replacementCharacter to null to throw an ArgumentError rather than replace the bad value.
Implementation
String decodeUtf32be(List<int> bytes,
[int offset = 0,
int? length,
bool stripBom = true,
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) =>
String.fromCharCodes((Utf32beBytesDecoder(
bytes, offset, length, stripBom, replacementCodepoint))
.decodeRest()
.whereType<int>());