tryPush method

Future<DatumEither<DatumError, T>> tryPush({
  1. required T item,
  2. required String userId,
  3. DataSource source = DataSource.local,
  4. bool forceRemoteSync = false,
})

Non-throwing variant of push.

Implementation

Future<DatumEither<DatumError, T>> tryPush({
  required T item,
  required String userId,
  DataSource source = DataSource.local,
  bool forceRemoteSync = false,
}) =>
    _guard(() => push(
          item: item,
          userId: userId,
          source: source,
          forceRemoteSync: forceRemoteSync,
        ));