postExecute method
- LocalDatabase localDatabase,
- bool success
To be executed after the actual run.
Mostly, cleans the temporary data changes performed in preExecute.
success indicates (if true) that so far the operation was a success.
With that bool we're able to deal with 2 cases:
- everything is fine and we may have to do something more than cleaning
- something bad happened and we just need to clear the task
Implementation
@mustCallSuper
Future<void> postExecute(
LocalDatabase localDatabase,
bool success,
) async => localDatabase.upToDate.terminate(uniqueId);