TappableActionConfig class
Configuration for TappableAction behavior
- Annotations
Constructors
- TappableActionConfig({bool requireNetwork = true, bool debounceTaps = true, Duration? coolDownDuration, Duration? delayBeforeFirstTapDuration, bool disableVisuallyDuringFirstDelay = true, Duration? minDisabledDuration, String? groupId, bool disableVisuallyDuringDebouncing = true})
-
const
- TappableActionConfig.critical({bool requireNetwork = true, bool debounceTaps = true, Duration? coolDownDuration = const Duration(seconds: 2), Duration? delayBeforeFirstTapDuration = const Duration(milliseconds: 300), bool disableVisuallyDuringFirstDelay = true, Duration? minDisabledDuration = const Duration(seconds: 1), String? groupId, bool disableVisuallyDuringDebouncing = true})
-
Conservative configuration for critical actions (payments, deletions, etc.)
const
- TappableActionConfig.highFrequency({bool requireNetwork = false, bool debounceTaps = true, Duration? coolDownDuration = const Duration(milliseconds: 100), Duration? delayBeforeFirstTapDuration, bool disableVisuallyDuringFirstDelay = false, Duration? minDisabledDuration = const Duration(milliseconds: 50), String? groupId, bool disableVisuallyDuringDebouncing = false})
-
Optimized configuration for high-frequency interactions
const
Properties
- coolDownDuration → Duration?
-
final
- debounceTaps → bool
-
final
- delayBeforeFirstTapDuration → Duration?
-
final
- disableVisuallyDuringDebouncing → bool
-
final
- disableVisuallyDuringFirstDelay → bool
-
final
- groupId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Validation helper
no setter
- minDisabledDuration → Duration?
-
final
- requireNetwork → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited