rowsToCsv static method
Serialise already-normalized tabular rows to CSV.
Implementation
static String rowsToCsv(
List<List<Object?>> rows, {
String delimiter = ',',
String lineEnding = '\r\n',
}) {
return rows
.map(
(row) => row
.map((cell) => _csvEscape(_tabularCellText(cell), delimiter))
.join(delimiter),
)
.join(lineEnding);
}