write static method

Future<void> write(
  1. String path,
  2. CsvTable table, {
  3. CsvConfig config = const CsvConfig(),
})

Write CsvTable to file (async).

Implementation

static Future<void> write(
  String path,
  CsvTable table, {
  CsvConfig config = const CsvConfig(),
}) async {
  final csv = table.toCsv(config: config);
  await File(path).writeAsString(csv);
}