installedApps method
Implementation
@override
Future<List<InstalledApp>> installedApps({
bool ignoreSystemApps = true,
}) async {
final result = await methodChannel
.invokeMethod<Map<Object?, Object?>>(MethodName.installedApps, {
Argument.ignoreSystemApps: ignoreSystemApps,
});
return await Isolate.run(() async {
final map = await _convertToStringDynamicMap(result);
final response = BaseInstalledApp.fromJson(map);
if (response.status) {
return response.data;
} else {
debugPrint(map.toString());
return <InstalledApp>[];
}
});
}