enableHaptics property
Whether to emit haptic feedback on toggle.
When true (the default), a HapticFeedback.lightImpact fires:
- immediately when the switch is tapped,
- when the thumb crosses the 50 % midpoint during a drag, and
- on drag release if the thumb snaps to a new state and the midpoint was never crossed (e.g. a fast flick).
Set to false to suppress all haptics — useful when the parent widget
already manages its own haptic layer.
Implementation
final bool enableHaptics;