DatumManagerAutoSyncInfo<T extends DatumEntityInterface> extension
- on
-
- DatumManager<
T>
- DatumManager<
Methods
-
deleteMany(
List< String> ids, {required String userId, DataSource source = DataSource.local, bool forceRemoteSync = false, DeleteBehavior? behavior}) → Future<List< String> > -
Available on DatumManager<
Deletes multiple entities byT> , provided by the DatumManagerAutoSyncInfo extensionidsin one call, returning the ids that were actually removed (a batch convenience over delete). -
getNextSyncDuration(
) → Future< Duration?> -
Available on DatumManager<
Gets the Duration until the next scheduled auto-sync as aT> , provided by the DatumManagerAutoSyncInfo extensionFuture. -
getNextSyncTime(
) → Future< DateTime?> -
Available on DatumManager<
Gets the DateTime of the next scheduled auto-sync as aT> , provided by the DatumManagerAutoSyncInfo extensionFuture. -
tryCascadeDelete(
{required String id, required String userId, DataSource source = DataSource.local, bool forceRemoteSync = false}) → Future< DatumEither< DatumError, CascadeDeleteResult< >T> > -
Available on DatumManager<
Non-throwing variant of cascadeDelete.T> , provided by the DatumManagerAutoSyncInfo extension -
tryDelete(
{required String id, required String userId, DataSource source = DataSource.local, bool forceRemoteSync = false, DeleteBehavior? behavior}) → Future< DatumEither< DatumError, bool> > -
Available on DatumManager<
Non-throwing variant of delete.T> , provided by the DatumManagerAutoSyncInfo extension -
tryPush(
{required T item, required String userId, DataSource source = DataSource.local, bool forceRemoteSync = false}) → Future< DatumEither< DatumError, T> > -
Available on DatumManager<
Non-throwing variant of push.T> , provided by the DatumManagerAutoSyncInfo extension -
tryQuery(
DatumQuery query, {required DataSource source, String? userId}) → Future< DatumEither< DatumError, List< >T> > -
Available on DatumManager<
Non-throwing variant ofT> , provided by the DatumManagerAutoSyncInfo extensionquery. -
tryRead(
String id, {String? userId, List< String> withRelated = const []}) → Future<DatumEither< DatumError, T?> > -
Available on DatumManager<
Non-throwing variant of read. ReturnsT> , provided by the DatumManagerAutoSyncInfo extensionSuccess(null)when the entity is simply absent, andFailureonly on an actual error (storage, network…). -
tryReadAll(
{String? userId, List< String> withRelated = const []}) → Future<DatumEither< DatumError, List< >T> > -
Available on DatumManager<
Non-throwing variant of readAll.T> , provided by the DatumManagerAutoSyncInfo extension -
trySaveMany(
{required List< T> items, required String userId, bool andSync = false, DataSource source = DataSource.local, bool forceRemoteSync = false, DatumSyncOptions<T> ? syncOptions, DatumSyncScope? scope}) → Future<DatumEither< DatumError, List< >T> > -
Available on DatumManager<
Non-throwing variant of saveMany.T> , provided by the DatumManagerAutoSyncInfo extension -
trySwitchUser(
{required String? oldUserId, required String newUserId, UserSwitchStrategy? strategy}) → Future< DatumEither< DatumError, DatumUserSwitchResult> > -
Available on DatumManager<
Non-throwing variant of switchUser.T> , provided by the DatumManagerAutoSyncInfo extension -
trySynchronize(
String userId, {DatumSyncOptions< DatumEntityInterface> ? options, DatumSyncScope? scope}) → Future<DatumEither< DatumError, DatumSyncResult< >T> > -
Available on DatumManager<
Non-throwing variant of synchronize.T> , provided by the DatumManagerAutoSyncInfo extension