tryDelete method

Future<DatumEither<DatumError, bool>> tryDelete({
  1. required String id,
  2. required String userId,
  3. DataSource source = DataSource.local,
  4. bool forceRemoteSync = false,
  5. DeleteBehavior? behavior,
})

Non-throwing variant of delete.

Implementation

Future<DatumEither<DatumError, bool>> tryDelete({
  required String id,
  required String userId,
  DataSource source = DataSource.local,
  bool forceRemoteSync = false,
  DeleteBehavior? behavior,
}) =>
    _guard(() => delete(
          id: id,
          userId: userId,
          source: source,
          forceRemoteSync: forceRemoteSync,
          behavior: behavior,
        ));