requestCsv function

Future<List<List<String>>> requestCsv(
  1. String url, {
  2. String fieldSep = ',',
  3. String textSep = '"',
  4. bool multiline = true,
})

Downloads the TSV file from specified url and returns the parsed data

Implementation

Future<List<List<String>>> requestCsv(String url,
    {String fieldSep = ',',
    String textSep = '"',
    bool multiline = true}) async {
  final client = BrowserClient();
  final Response resp = await client.get(Uri.parse(url));
  return parseCsv(resp.body,
      fieldSep: fieldSep, textSep: textSep, multiline: multiline);
}