TappableActionConfig.search constructor
const
TappableActionConfig.search({
- bool requireNetwork = true,
- bool debounceTaps = true,
- Duration? coolDownDuration = const Duration(milliseconds: 300),
- Duration? delayBeforeFirstTapDuration,
- bool disableVisuallyDuringFirstDelay = true,
- Duration? minDisabledDuration,
- String? groupId,
- bool disableVisuallyDuringDebouncing = false,
- TapExecutionMode executionMode = TapExecutionMode.debounce,
- bool executeOnLeadingEdge = false,
- bool executeOnTrailingEdge = true,
- TapConcurrencyMode concurrencyMode = TapConcurrencyMode.drop,
- int rateLimitMaxTokens = 10,
- Duration rateLimitRefillInterval = const Duration(seconds: 1),
- int rateLimitTokensPerRefill = 5,
- void onMetrics()?,
- bool enabled = true,
- Duration? maxDuration,
- String? debugName,
For search inputs - debounce with trailing edge.
Implementation
const TappableActionConfig.search({
this.requireNetwork = true,
this.debounceTaps = true,
this.coolDownDuration = const Duration(milliseconds: 300),
this.delayBeforeFirstTapDuration,
this.disableVisuallyDuringFirstDelay = true,
this.minDisabledDuration,
this.groupId,
this.disableVisuallyDuringDebouncing = false,
// Search-specific: debounce, trailing edge only
this.executionMode = TapExecutionMode.debounce,
this.executeOnLeadingEdge = false,
this.executeOnTrailingEdge = true,
this.concurrencyMode = TapConcurrencyMode.drop,
this.rateLimitMaxTokens = 10,
this.rateLimitRefillInterval = const Duration(seconds: 1),
this.rateLimitTokensPerRefill = 5,
this.onMetrics,
this.enabled = true,
this.maxDuration,
this.debugName,
});