From a list
MqttByteBuffer.fromList(List<int> data) { buffer = typed.Uint8Buffer(); buffer!.addAll(data); }