toPlainMessage static method
Implementation
static Uint8List toPlainMessage(String message) {
var messageByte = utf8ToBytes(message);
var messageWithZero = Uint8List(messageByte.length + 1);
messageWithZero[0] = 0;
messageWithZero.setRange(1, messageByte.length + 1, messageByte);
return messageWithZero;
}