getSystemApps method
Implementation
@override
Future<List<AppInfo>> getSystemApps(
String bundleIdPrefix,
bool includeIcon,
List<String> permissions,
bool shouldHasAllPermissions,
) async {
List<dynamic> apps = await methodChannel.invokeMethod(
'getSystemApps',
{
'bundleIdPrefix': bundleIdPrefix,
'includeIcon': includeIcon,
'permissions': permissions,
'hasAllPermissions': shouldHasAllPermissions,
},
);
List<AppInfo> appInfoList = apps.map((app) => AppInfo.create(app)).toList();
appInfoList.sort((a, b) => a.name!.compareTo(b.name!));
return appInfoList;
}