haptic static method
Short vibration feedback (Android/iOS; ignored on desktop and web). UApp.haptic(UHapticType.success)
Implementation
static Future<void> haptic([UHapticType type = UHapticType.light]) => switch (type) {
UHapticType.light => HapticFeedback.lightImpact(),
UHapticType.medium || UHapticType.success => HapticFeedback.mediumImpact(),
UHapticType.heavy || UHapticType.error => HapticFeedback.heavyImpact(),
UHapticType.selection => HapticFeedback.selectionClick(),
UHapticType.warning => HapticFeedback.vibrate(),
};