overrideWithBuild method

Override overrideWithBuild(
  1. RunNotifierBuild<AddonQuery, String?> build
)
inherited

Overrides the build method of a notifier, allowing you to replace the default implementation with a custom one for testing or specific use cases.

This override affects only the build method of the notifier, leaving the rest of the provider's behavior unchanged. It is useful when you want to customize the notifier's initialization logic without altering other aspects of the provider.

Implementation

Override overrideWithBuild(RunNotifierBuild<NotifierT, CreatedT> build) {
  return $ProviderOverride(
    origin: this,
    providerOverride: $view(runNotifierBuildOverride: build),
  );
}