trySaveMany method

Future<DatumEither<DatumError, List<T>>> trySaveMany({
  1. required List<T> items,
  2. required String userId,
  3. bool andSync = false,
  4. DataSource source = DataSource.local,
  5. bool forceRemoteSync = false,
  6. DatumSyncOptions<T>? syncOptions,
  7. DatumSyncScope? scope,
})

Non-throwing variant of saveMany.

Implementation

Future<DatumEither<DatumError, List<T>>> trySaveMany({
  required List<T> items,
  required String userId,
  bool andSync = false,
  DataSource source = DataSource.local,
  bool forceRemoteSync = false,
  DatumSyncOptions<T>? syncOptions,
  DatumSyncScope? scope,
}) =>
    _guard(() => saveMany(
          items: items,
          userId: userId,
          andSync: andSync,
          source: source,
          forceRemoteSync: forceRemoteSync,
          syncOptions: syncOptions,
          scope: scope,
        ));