Open wuxialearn opened 2 months ago
Ok, it works like this
csvParseWith<Map<String, dynamic>>((data), (d, _, __) => autoType(d))
@wuxialearn The documentation is unclear and will be corrected. Thanks for pointing it out.
it might also be worthwhile to provide a convenience method that only applies to each row like
csvParseWithFn(data, fn)
which internally calls
csvParseWith<Map<String, dynamic>>((data), (d, _, __) => fn(d))
The docs for
autoType
show this usagebut it does not seem to work as
csvParse
only accepts aString
. Neither doeswhich gives this error: