getInstalledApps method
Retrieves a list of installed apps on the device.
If fetchIcons
is true
, app icons will also be fetched.
Implementation
@override
Future<List<AppPackage>> getInstalledApps([bool fetchIcons = false]) async {
return methodChannel.invokeMethod(
"installedApps", {"fetch_icons": fetchIcons}).then((value) {
return List<AppPackage>.from(value
.map((e) => Map<String, dynamic>.from(e))
.map((e) => AppPackage.fromMap(e)));
});
}