Provides haptic feedback to the user for a short duration.
Platform Specific Notes:
- iOS: Uses the platform "sound" for vibration (via AudioServicesPlaySystemSound)
- Android: Uses the platform haptic feedback API that simulates a short a short tap on a virtual keyboard.
Source
static Future<Null> vibrate() async { await PlatformMessages.invokeMethod('flutter/platform', 'HapticFeedback.vibrate'); }