Summary

In this chapter, you got acquainted to using the Future objects in order to call methods asynchronously. We discussed the pros and cons of browser storage mechanisms and used the best mechanism (IndexedDB) extensively in a complete reworking of our todo app. We also looked at Lawndart for times when you want to program against a uniform local storage interface. Then, we started with Dart on the server: how to write a web server and how to communicate between clients and the server. With it, we rewrote our app into a real client-server app and stored data locally on the clients and in the memory on the server.

However, any system failure can have server memory loss as a result. Mostly, we want to have more persistent central data storage; this is the topic we will cover in the following chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.128.105