tryDelete method
Future<DatumEither<DatumError, bool> >
tryDelete({
- required String id,
- required String userId,
- DataSource source = DataSource.local,
- bool forceRemoteSync = false,
- 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,
));