update method
Implementation
Future<T> update(T entity) async {
_logger.d('[OfflineFirstRepository] Updating entity: ${entity.id}');
final entityWithLocalFile = await _copyFileToLocalStorage(entity);
final updatedEntity = await localRepository.update(entityWithLocalFile);
_logger
.d('[OfflineFirstRepository] Entity updated locally. Triggering sync');
unawaited(_syncChanges());
return updatedEntity;
}