paddedByteArrayToString static method

String paddedByteArrayToString(
  1. Uint8List? bytes
)

Remove zeros from the end of bytes array.

Implementation

static String paddedByteArrayToString(Uint8List? bytes) {
  return String.fromCharCodes(bytes!).split('\x00')[0];
}