addOrUpdate abstract method

Future<void> addOrUpdate(
  1. List<T> items, {
  2. bool fromCloud = false,
})

Adds or updates the given items in the local repository.

If fromCloud is true, it indicates that the items are being synced from the cloud. Throws an exception if the operation fails.

Implementation

Future<void> addOrUpdate(List<T> items, {bool fromCloud = false});