impact method

Future<void> impact()

Performs the haptic feedback impact of the HapticFeedbackSettings.

Implementation

Future<void> impact() async {
  switch (this) {
    case HapticFeedbackSettings.none:
      break;
    case HapticFeedbackSettings.light:
      await HapticFeedback.lightImpact();
      break;
    case HapticFeedbackSettings.medium:
      await HapticFeedback.mediumImpact();
      break;
    case HapticFeedbackSettings.heavy:
      await HapticFeedback.heavyImpact();
      break;
  }
}