Combine a set of Uint8List
Uint8List
implements List<int>
. You can combine them to a new List<int>
and then create a new Uint8List
with
List<List<int>> myByteLists = ...;
var bytes = Uint8List.fromList(myByteList.expand((x) => x).toList());
Uint8List
implements List<int>
. You can combine them to a new List<int>
and then create a new Uint8List
with
List<List<int>> myByteLists = ...;
var bytes = Uint8List.fromList(myByteList.expand((x) => x).toList());