concatBuffers static method
Implementation
static Uint8List concatBuffers(List<Uint8List?> arrayBuffers) {
var totalLength =
arrayBuffers.map((b) => b!.lengthInBytes).reduce((a, b) => a + b);
var result = Uint8List(totalLength);
var offset = 0;
for (var item in arrayBuffers) {
result.setAll(offset, item!);
offset += item.lengthInBytes;
}
return result;
}