FastEncoder class

High-performance batch CSV encoder using per-call StringBuffer.

Thread-safe: no global mutable state.

Null handling per QuoteMode: necessary and strings write nulls as an empty unquoted field (so null and '' round-trip differently: necessary quotes empty strings as ""); always writes nulls as "" like every other field.

Constructors

FastEncoder()
Create a batch encoder instance (stateless, reusable).
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode(List<List> data, CsvConfig config) String
Encode rows to CSV string with type-aware quoting.
encodeGeneric<T>(List<List<T>> data, CsvConfig config) String
Encode uniform-typed data. Ideal for numeric/bool grids.
encodeMap(Map<String, dynamic> map, CsvConfig config) String
Encode a Map as two-column CSV (key, value).
encodeStrings(List<List<String>> data, CsvConfig config) String
Encode all-string data (skip type checks, always quote).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

writeCell(StringBuffer buf, dynamic cell, String delim, String quote, String escape, QuoteMode mode) → void
Write one cell into buf, applying quoting per mode.