getInstalledApps method

  1. @override
Future<List<AppInfo>> getInstalledApps({
  1. bool includeSystemApps = false,
})
override

Implementation

@override
Future<List<AppInfo>> getInstalledApps({
  bool includeSystemApps = false,
}) async {
  final List<dynamic>? appsMap = await methodChannel.invokeMethod(
    'getInstalledApps',
    {'includeSystemApps': includeSystemApps},
  );
  if (appsMap == null) return [];
  return appsMap.map((map) => AppInfo.fromMap(map)).toList();
}