execute method

  1. @override
Future<void> execute(
  1. LocalDatabase localDatabase
)
override

Executes the background task: upload, download, update locally.

Implementation

@override
Future<void> execute(LocalDatabase localDatabase) async {
  final String bearerToken = await getBearerToken(localDatabase);

  await addPrices(
    bearerToken: bearerToken,
    proofId: proofId,
    localDatabase: localDatabase,
  );
}