CsvFile class

Convenience class for CSV file operations.

Uses dart:io for file access. Isolated here to keep core library platform-independent.

Constructors

CsvFile()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

append(String path, List<List> rows, {CsvConfig config = const CsvConfig()}) Future<void>
Append rows to existing file (async).
read(String path, {CsvConfig config = const CsvConfig()}) Future<CsvTable>
Read entire file into CsvTable (async).
readSync(String path, {CsvConfig config = const CsvConfig()}) CsvTable
Read entire file into CsvTable (sync).
stream(String path, {CsvConfig config = const CsvConfig()}) Stream<List>
Stream rows from file. Memory-efficient for large files.
write(String path, CsvTable table, {CsvConfig config = const CsvConfig()}) Future<void>
Write CsvTable to file (async).
writeRows(String path, List<List> rows, {CsvConfig config = const CsvConfig()}) Future<void>
Write raw rows to file (async).
writeStream(String path, Stream<List> rows, {CsvConfig config = const CsvConfig()}) Future<void>
Stream rows to file. Memory-efficient for large outputs.
writeSync(String path, CsvTable table, {CsvConfig config = const CsvConfig()}) → void
Write CsvTable to file (sync).