flutter_d3_dsv_port 0.1.0
flutter_d3_dsv_port: ^0.1.0 copied to clipboard
Native Dart CSV, TSV and delimiter-separated value parsing and formatting, with generic row conversion and typed automatic value inference. Ports d3-dsv 3.0.1.
// Original code, not ported from d3-dsv: typed parsing example.
// ignore_for_file: avoid_print
import 'package:flutter_d3_dsv_port/d3_dsv.dart';
void main() {
final people = csvParseAs(
'name,age\nAda,36',
(row, index, columns) => (name: row['name']!, age: int.parse(row['age']!)),
);
print(people.first);
print(csvFormat(csvParse('name,age\nAda,36')));
}