getAccessibilityPermission static method
Requests Accessibility permission from the user. This will open the system's accessibility settings screen. Returns "granted" if the service is already enabled, or "need_permission" if the settings screen was opened.
Implementation
static Future<String> getAccessibilityPermission() async {
try {
final result =
await _channel.invokeMethod<String>('getAccessibilityPermission');
return result ?? 'unknown';
} on PlatformException catch (e) {
throw Exception('Failed to handle accessibility permission: ${e.message}');
}
}