Skip to content
pubscout

serial_csv

0.5.2, released 9 months ago by tienisto.com

High-performance CSV encoder/decoder preserving types and nullability

WASM-ready
$ flutter pub add serial_csv
Source repository

What it does

Provides fast encode/decode for CSV with retained type info. Supports strict and flexible formats, string-only, and map encoding.

AI-written summary of version 0.5.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need efficient CSV handling in Dart/Flutter
  • Require type preservation when serializing data
  • Working with large CSV datasets

Skip it when

  • You need full CSV spec support (comments, varied quoting)
  • You prefer a higher-level data serialization like JSON

Strengths

  • Very fast benchmark performance
  • Retains original data types
  • Flexible decoding options
  • No external dependencies

Weaknesses

  • Strict format may break with other CSV tools
  • Limited to basic types (String, int, double, bool, null)
  • No support for complex CSV features (comments, custom delimiters)

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
String encoded = SerialCsv.encode([
  ['a', 'b', 'c'],
  [1, 2.3, '3'],
  ['4', null, true],
]);
List<List<dynamic>> decoded = SerialCsv.decode(encoded);

Alternatives

Packages that do the same job and could replace serial_csv.

Works with

Packages commonly used together with serial_csv: ones it builds on, ones built on it, and its own family.