csv 8.0.0
csv: ^8.0.0 copied to clipboard
A high-quality CSV library. Encode and decode CSV strings, with stream support (one row per event), auto-detection, and Excel compatibility. The string must be comma (configurable) separated values.
import 'package:csv/csv.dart';
void main() {
final input = [['name', 'age'], ['Alice', 30], ['Bob', 25]];
final encoded = csv.encode(input);
print('Encoded: $encoded');
final decoded = csv.decode(encoded);
print('Decoded: $decoded');
}