parse function
Parses the CSV data and returns the result as a List<List<String>>.
- Will not parse numbers
- The field separator is parsed as specified in the
separatorargument - Line endings are
\n,\r\nor\r - The start and end of strings is the character
" - Escaping a character
"in a string is parsed via sequence"" - Exception
FormatExceptionwill be thrown if parsing fails
Implementation
List<List<String>> parse(String source, {String separator = ','}) {
final parser = CsvExParser(separator: separator);
final result = CsvExConverter(parser: parser).convert(source);
return result;
}