toBuffer function
Concatenates a list of lists of integer values buff
into a single list of integers.
buff
: The list of lists of integer values to concatenate.
Returns a list of integers representing the concatenated values.
Implementation
List<int> toBuffer(List<List<int>> buff) {
return List<int>.from(buff.expand((element) => element).toList());
}