cancel static method

Future<void> cancel()

This method is used to cancel an ongoing vibration. iOS: only works for custom haptic vibrations using `CHHapticEngine.

Vibration.vibrate(duration: 10000);
Vibration.cancel();

Implementation

static Future<void> cancel() => _channel.invokeMethod("cancel");