Book Image

Learning Dart

Book Image

Learning Dart

Overview of this book

Table of Contents (19 chapters)
Learning Dart
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, you got acquainted with using Futures 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 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 and, most probably, we do want to have more persistent central data storage; this is the topic of the following chapter.