parseString static method

List<List> parseString(
  1. String content,
  2. SheetType type
)

Parse string content (for text-based formats only)

content - The string content to parse type - The file type (must be csv, tsv, or psv)

Implementation

static List<List<dynamic>> parseString(String content, SheetType type) {
  if (!type.isTextBased) {
    throw Exception(
      'parseString only supports text-based formats (CSV, TSV, PSV). '
      'For Excel files, use parseBytes.',
    );
  }
  return CsvParser.parseString(content, type);
}