androidGetInstalledApps method

  1. @override
Future<List<InstalledApp>> androidGetInstalledApps({
  1. bool includeIcons = false,
  2. bool includeSystemApps = true,
  3. int iconSize = 96,
})
override

Implementation

@override
Future<List<InstalledApp>> androidGetInstalledApps({
  bool includeIcons = false,
  bool includeSystemApps = true,
  int iconSize = 96,
}) async {
  final apps = await _invoke<List<dynamic>>('getInstalledApps', {
    'includeIcons': includeIcons,
    'includeSystemApps': includeSystemApps,
    'iconSize': iconSize,
  });
  return (apps ?? const [])
      .whereType<Map>()
      .map((app) => InstalledApp.fromMap(_stringKeyed(app)))
      .toList();
}