AiroHapticSettings class
Global configuration settings for the Airo Haptics engine.
Constructors
- AiroHapticSettings({bool enabled = true, AiroHapticStrength strength = AiroHapticStrength.medium, double globalScale = 1.0, bool respectSystemSettings = true, bool reducedMotion = false, bool debugLogs = false, Duration minThrottleDuration = const Duration(milliseconds: 30), Duration coalesceInterval = const Duration(milliseconds: 16)})
-
const
-
AiroHapticSettings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- coalesceInterval → Duration
-
Coalescing interval window for grouping rapid consecutive taps.
final
- debugLogs → bool
-
Enable detailed logging for debugging haptic timing and dispatch.
final
- enabled → bool
-
Master toggle enabling or disabling all haptic output globally.
final
- globalScale → double
-
Master volume/intensity scale factor (0.0 to 1.0).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minThrottleDuration → Duration
-
Default minimum duration window between identical haptic triggers.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- reducedMotion → bool
-
Accessibility: whether reduced motion is active (mutes/scales heavy haptics).
final
- respectSystemSettings → bool
-
Whether to respect OS-level system haptic accessibility settings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strength → AiroHapticStrength
-
User strength preference (off / soft / medium / strong).
final
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
copyWith(
{bool? enabled, AiroHapticStrength? strength, double? globalScale, bool? respectSystemSettings, bool? reducedMotion, bool? debugLogs, Duration? minThrottleDuration, Duration? coalesceInterval}) → AiroHapticSettings -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited