silentFetchAndRefreshList method

Future<List<String>?> silentFetchAndRefreshList({
  1. required List<String> barcodes,
  2. required LocalDatabase localDatabase,
  3. required ProductType productType,
})

Fetches the products from the server and refreshes the local database.

Silent version.

Implementation

Future<List<String>?> silentFetchAndRefreshList({
  required List<String> barcodes,
  required LocalDatabase localDatabase,
  required ProductType productType,
}) async => _fetchAndRefreshList(localDatabase, barcodes, productType);