preExecute method
- LocalDatabase localDatabase
override
Executes the background task: upload, download, update locally. Runs instantly temporary code in order to "fake" the background task.
For instance, here we can pretend that we've changed the product name by doing it locally, but the background task that talks to the server is not even started.
Implementation
@override
Future<void> preExecute(LocalDatabase localDatabase) async {
localDatabase.upToDate.addChange(uniqueId, getProductChange());
_getTransientFile().removeImage(localDatabase);
}