osvScannerTaskProvider top-level property

ConfigurableTaskProviderFamily<OsvScannerTask, OsvScannerConfig> osvScannerTaskProvider
final

A riverpod provider for the osv scanner task.

Implementation

final osvScannerTaskProvider = TaskProvider.configurable(
  OsvScannerTask._taskName,
  OsvScannerConfig.fromJson,
  (ref, config) => OsvScannerTask(
    programRunner: ref.watch(programRunnerProvider),
    taskLogger: ref.watch(taskLoggerProvider),
    config: config,
  ),
);