u8aToString function

String u8aToString(
  1. Uint8List u8a, {
  2. bool useDartEncode = false,
})

Implementation

String u8aToString(Uint8List u8a, {bool useDartEncode = false}) {
  if (useDartEncode) {
    return utf8.decode(u8a, allowMalformed: true);
  }
  return textDecoder(u8a);
}