This package is built on top of rest_data. It uses sembast to store on local device all data coming from your REST backend.
It provides your app with a REST Adapter which behaves as follows - see rest_data's Readme to learn what an Adapter is in these packages 😉
- While device is online, it just stores on local device all REST data coming from the backend.
- When device is offline:
- it returns data from local device on read operations
- it stores added, updated and deleted records on local device
- When device gets back online (TODO):
- it processes added, updated and deleted queues by sending the appropriate requests to the REST backend.