CsvParser class

Parser of CSV-like file formats

Constructors

CsvParser({String fieldSep = ',', String textSep = '"', bool multiline = true})
const

Properties

fieldSep String
Field separator
final
hashCode int
The hash code for this object.
no setterinherited
multiline bool
Can a row span multiple lines?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textSep String
Text separator
final

Methods

convert(String buffer, {bool multiline = true}) List<List<String>>
convertLabeled(String csv) Table
convertLines(Iterable<String> lines, {bool? multiline}) List<List<String>>
Parses given CSV lines
convertRow(String csv) List<String>?
Parses single CSV row csv
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

parseRow(String input, {String fs = r',', String ts = r'"'}) List<String>?
Parses single CSV row input with field separator fs and text separator ts