checkPermissions static method
Consulta el estado unificado de todos los permisos del sistema
Implementation
static Future<PermissionsStatus> checkPermissions() async {
try {
final result = await _channel.invokeMethod<Map<dynamic, dynamic>>('checkPermissions');
return PermissionsStatus.fromMap(result);
} catch (e) {
log('⚠️ Error al consultar permisos: $e');
return const PermissionsStatus(
notifications: false,
accessibility: false,
deviceOwner: false,
screenCaptureRunning: false,
);
}
}