CsvTableManipulation extension
Column and row manipulation operations on CsvTable.
- on
Methods
-
addColumn(
String name, {dynamic defaultValue}) → void -
Available on CsvTable, provided by the CsvTableManipulation extension
Add a new column with optional default value. -
fold<
T> (T initial, T combine(T accumulator, CsvRow row)) → T -
Available on CsvTable, provided by the CsvTableManipulation extension
Reduce rows to a single value. -
insertColumn(
int index, String name, {dynamic defaultValue}) → void -
Available on CsvTable, provided by the CsvTableManipulation extension
Insert column at index. -
map(
CsvRow transform(CsvRow row)) → CsvTable -
Available on CsvTable, provided by the CsvTableManipulation extension
Apply a transform to every row. Returns a new CsvTable; this table is left untouched. -
removeColumn(
String name) → List -
Available on CsvTable, provided by the CsvTableManipulation extension
Remove column by name. Returns removed values. -
removeColumnAt(
int index) → List -
Available on CsvTable, provided by the CsvTableManipulation extension
Remove column by index. Returns removed values. -
renameColumn(
String oldName, String newName) → void -
Available on CsvTable, provided by the CsvTableManipulation extension
Rename a column. -
reorderColumns(
List< String> newOrder) → void -
Available on CsvTable, provided by the CsvTableManipulation extension
Reorder columns to match the given header order. -
transformColumn(
String name, dynamic transform(dynamic value)) → void -
Available on CsvTable, provided by the CsvTableManipulation extension
Apply a transform to every cell in a column.