getInstalledApps method
Implementation
Future<List<UniversalAppInfo>> getInstalledApps() async {
try {
if (kIsWeb) {
return _getWebApps();
} else if (Platform.isAndroid) {
return _getAndroidApps();
} else if (Platform.isIOS) {
return _getIOSApps();
} else if (Platform.isWindows) {
return _getWindowsApps();
} else if (Platform.isLinux) {
return _getLinuxApps();
} else if (Platform.isMacOS) {
return _getMacOSApps();
} else {
debugPrint('Platform not supported: ${Platform.operatingSystem}');
return [];
}
} catch (e) {
debugPrint('Error getting installed apps: $e');
return [];
}
}