overrideWithBuilder method

ProviderOverride<ImmutableNotifier<T>, T> overrideWithBuilder(
  1. T builder(
    1. Ref ref
    )
)

Overrides the state of a provider with a predefined value.

{@category Initialization}

Implementation

ProviderOverride<ImmutableNotifier<T>, T> overrideWithBuilder(
  T Function(Ref ref) builder,
) {
  return ProviderOverride(
    provider: this,
    createState: (ref) => _build(ref, builder),
  );
}