hasPermissions method

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

Check if permissions are granted

Implementation

@override
Future<bool> hasPermissions() async {
  try {
    final result = await _methodChannel.invokeMethod<bool>('hasPermissions');
    return result ?? false;
  } catch (e) {
    throw BluetoothException('Failed to check permissions: $e');
  }
}