MqttByteBuffer.fromList constructor Null safety

MqttByteBuffer.fromList(
  1. List<int> data
)

From a list

Implementation

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