serial_csv 0.2.0 copy "serial_csv: ^0.2.0" to clipboard
serial_csv: ^0.2.0 copied to clipboard

High performance CSV encoder and decoder with retained types and nullability.

example/serial_csv_example.dart

import 'package:serial_csv/serial_csv.dart';

void main() {
  const csv = '"a","b","c"\n1,2.3,"3"\n4,,true\n';
  List<List<dynamic>> decoded = SerialCsv.decode(csv);
  String encoded = SerialCsv.encode(decoded);

  for (int row = 0; row < decoded.length; row++) {
    for (int col = 0; col < decoded[row].length; col++) {
      print('decoded[$row][$col]: ${decoded[row][col]} (${decoded[row][col].runtimeType})');
    }
  }

  print('encoded:');
  print(encoded);
}
3
likes
0
pub points
55%
popularity

Publisher

verified publishertienisto.com

High performance CSV encoder and decoder with retained types and nullability.

Repository (GitHub)
View/report issues

Topics

#csv #serialization #deserialization #encode #decode

License

unknown (license)

More

Packages that depend on serial_csv