lightImpact static method

Future<void> lightImpact()

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.


static Future<void> lightImpact() async {
  await SystemChannels.platform.invokeMethod<void>(