execute method
- LocalDatabase localDatabase
override
Executes the background task: upload, download, update locally.
Implementation
@override
Future<void> execute(LocalDatabase localDatabase) async {
final DaoWorkBarcode daoWorkBarcode = DaoWorkBarcode(localDatabase);
await daoWorkBarcode.deleteWork(work);
await BackgroundTaskTopBarcodes.addTask(
localDatabase: localDatabase,
work: work,
pageSize: pageSize,
totalSize: totalSize,
soFarSize: 0,
productType: productType,
);
}