Async CSV convert to Listing

Hi all,

I’ve a 30 MB CSV document that I need to convert to a Listing, after which to a Listing of my very own information magnificence. I will be able to learn the document async, however the CSV conversion appears to be sync (the flutter app is frozen for 2-3 seconds):

ultimate rawData = look forward to rootBundle.loadString(“information/main_table.csv”);
Listing<ItemRow> listData =
const CsvToListConverter(
eol: ‘n’,
shouldParseNumbers: false)
.map((information) => ItemRow(information))

I wish to run async the convert approach (or in a background thread). Some hints to try this in Dart/flutter? Another way?

Thank you!!!

View Reddit through heltena_catView Supply

You may also like...

WP2Social Auto Publish Powered By :