isSupported method

  1. @override
Future<bool> isSupported()
override

Checks if vibration is supported on this platform.

Implementation

@override
Future<bool> isSupported() async {
  try {
    final supported =
        await methodChannel.invokeMethod<bool>('isSupported');
    return supported ?? false;
  } catch (_) {
    return false;
  }
}