CsvDecoder class
A converter that converts a CSV string into a List<List<dynamic>>.
Constructors
- CsvDecoder({String? fieldDelimiter, String quoteCharacter = '"', String? escapeCharacter, bool skipEmptyLines = true, dynamic fieldTransform(dynamic field, int index, String? header)?, bool parseHeaders = false, bool dynamicTyping = false})
-
Creates a CsvDecoder.
const
Properties
- dynamicTyping → bool
-
Whether to automatically parse numbers and booleans.
final
- escapeCharacter → String?
-
The character used for escaping characters inside quoted fields.
If null, it defaults to the quoteCharacter.
final
- fieldDelimiter → String?
-
The separator between fields. If null, it will be auto-detected.
final
- fieldTransform → dynamic Function(dynamic field, int index, String? header)?
-
A function that can be used to transform each field after decoding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parseHeaders → bool
-
Whether to parse the first row as headers and return CsvRows.
final
- quoteCharacter → String
-
The character used for quoting fields.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipEmptyLines → bool
-
Whether to skip empty lines.
final
Methods
-
bind(
Stream< String> stream) → Stream<List< List> > -
Transforms the provided
stream.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>view of this stream transformer.inherited -
convert(
String input) → List< List> -
Converts
inputand returns the result of the conversion.override -
fuse<
TT> (Converter< List< other) → Converter<List> , TT>String, TT> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< List< sink) → StringConversionSinkList> > -
Starts a chunked conversion.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited