O'Reilly logo

Learning Dart by Ivo Balbaert, Dzenan Ridjanovic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using IndexedDB with Dart

We will learn how to work with IndexedDB and JSON web services through the indexed_db_spirals project (https://github.com/dzenanr/indexed_db_spirals), which is a todo app like the ones we've built in previous chapters, but that stores its data in IndexedDB. Get a copy of the code with a git clone:https://github.com/dzenanr/indexed_db_spirals.git.

Spiral s00

In this spiral, todo tasks can be entered, and they are stored in IndexedDB; the following is a screenshot:

Spiral s00

The Tasks screen of Spiral s00

Our model class is called Task, and lives in model.dart; with toDb and fromDb, it can transform an object to or make an object from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required