bytesToStringAsString method

String bytesToStringAsString (
  1. Uint8Buffer message
)

Converts an array of bytes to a character string.

Implementation

static String bytesToStringAsString(typed.Uint8Buffer message) {
  final sb = StringBuffer();
  message.forEach(sb.writeCharCode);
  return sb.toString();
}