lightImpact static method
Provides a haptic feedback corresponding a collision impact with a light mass.
On iOS versions 10 and above, this uses a UIImpactFeedbackGenerator
with
UIImpactFeedbackStyleLight
. This call has no effects on iOS versions
below 10.
On Android, this uses HapticFeedbackConstants.VIRTUAL_KEY
.
Implementation
static Future<void> lightImpact() async {
await SystemChannels.platform.invokeMethod<void>(
'HapticFeedback.vibrate',
'HapticFeedbackType.lightImpact',
);
}