table library
2D table data structure for CSV data.
CsvTable is the primary class: a mutable 2D data structure with optional column headers. Construct from raw data, maps, or parse directly from a CSV string:
final table = CsvTable.parse('name,age\nAlice,30\nBob,25');
print(table.cell(0, 0)); // Alice
print(table.cellByName(0, 'age')); // 30
Supporting types:
- CsvRow: header-aware row with dual-mode access (
row[0]orrow['name']). ExtendsListBase<dynamic>. - CsvColumn: column descriptor with analytics (
inferredType,nonNullCount,uniqueCount). - CsvSchema / CsvColumnDef: schema inference and validation.
Classes
Typedefs
- ColumnDef = CsvColumnDef
- Former name of CsvColumnDef, kept for source compatibility.