dvParseCsv function

List<List<String>> dvParseCsv(
  1. String content
)

content as rows of fields.

A quoted field keeps its commas, its line breaks and its spaces, and "" inside it is one quote. An unquoted field is trimmed, as before. Blank lines are skipped rather than read as empty records, and a leading byte-order mark is dropped so it never sticks to the first header.

Implementation

List<List<String>> dvParseCsv(String content) => <List<String>>[
      for (final _CsvRecord record in _records(content)) record.fields,
    ];