hasVibrator method

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

Checks if the device has a physical vibrator.

Implementation

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