Book Image

Learning Dart, Second Edition - Second Edition

By : Ivo Balbaert
Book Image

Learning Dart, Second Edition - Second Edition

By: Ivo Balbaert

Overview of this book

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

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.