hooksProvider top-level property

ProviderFamily<Hooks, HooksConfig> hooksProvider
final

A riverpod provider for the Hooks class, configurable with the HooksConfig.

Implementation

final hooksProvider = Provider.family(
  (ref, HooksConfig config) => Hooks(
    fileResolver: ref.watch(fileResolverProvider),
    programRunner: ref.watch(programRunnerProvider),
    configLoader: ref.watch(configLoaderProvider),
    taskLoader: ref.watch(taskLoaderProvider),
    logger: ref.watch(loggerProvider),
    config: config,
  ),
);