How can I save an object to a file in Dart and read it again?

1.6k Views Asked by At

I have already done that in Java using ObjectOutputStream and ObjectInputStream classes. Now I want to do this with Dart. I have no idea about what I should use. I have also researched on google but I only found something for serialization of objects and saving them with json. But I am looking for something without json, like in Java.

I'm not english, sorry if I made some mistakes in writing. Thank you for your time.

1

There are 1 best solutions below

0
On

I guess you want to store and retrieve your objects to save some important information. For fastest setup you can use HIVE pub.dev/packages/hive.

Other options are