silentStreamPolicyFunction function
StreamFunction
silentStreamPolicyFunction(
- StreamFunction innerBuilder(), {
- SilentStreamPolicyHooks hooks = const SilentStreamPolicyHooks(),
- Future<
bool> sleeper(- Duration delay,
- CancelToken? cancelToken
- ProviderStallLedger? ledger,
Convenience: wraps inner (statically bound) with the policy — the
resolver's seam when no rebuild-on-rotation is needed beyond the
hooks.
Implementation
StreamFunction silentStreamPolicyFunction(
StreamFunction Function() innerBuilder, {
SilentStreamPolicyHooks hooks = const SilentStreamPolicyHooks(),
Future<bool> Function(Duration delay, CancelToken? cancelToken)? sleeper,
ProviderStallLedger? ledger,
}) {
final policy = SilentStreamPolicy(
innerBuilder: innerBuilder,
hooks: hooks,
sleeper: sleeper,
ledger: ledger,
);
return policy.call;
}