TappableActionConfig.slider constructor
const
TappableActionConfig.slider({
- bool requireNetwork = false,
- bool debounceTaps = true,
- Duration? coolDownDuration,
- Duration? delayBeforeFirstTapDuration,
- bool disableVisuallyDuringFirstDelay = false,
- Duration? minDisabledDuration,
- String? groupId,
- bool disableVisuallyDuringDebouncing = false,
- TapExecutionMode executionMode = TapExecutionMode.rateLimited,
- bool executeOnLeadingEdge = true,
- bool executeOnTrailingEdge = false,
- TapConcurrencyMode concurrencyMode = TapConcurrencyMode.drop,
- int rateLimitMaxTokens = 20,
- Duration rateLimitRefillInterval = const Duration(milliseconds: 100),
- int rateLimitTokensPerRefill = 5,
- void onMetrics()?,
- bool enabled = true,
- Duration? maxDuration,
- String? debugName,
For sliders/high-frequency - rate limited with burst capacity.
Implementation
const TappableActionConfig.slider({
this.requireNetwork = false,
this.debounceTaps = true,
this.coolDownDuration,
this.delayBeforeFirstTapDuration,
this.disableVisuallyDuringFirstDelay = false,
this.minDisabledDuration,
this.groupId,
this.disableVisuallyDuringDebouncing = false,
// Slider-specific: rate limited
this.executionMode = TapExecutionMode.rateLimited,
this.executeOnLeadingEdge = true,
this.executeOnTrailingEdge = false,
this.concurrencyMode = TapConcurrencyMode.drop,
this.rateLimitMaxTokens = 20,
this.rateLimitRefillInterval = const Duration(milliseconds: 100),
this.rateLimitTokensPerRefill = 5,
this.onMetrics,
this.enabled = true,
this.maxDuration,
this.debugName,
});