getInstalledApp static method

Future<List<String>> getInstalledApp()

Implementation

static Future<List<String>> getInstalledApp() async{
  List<AppInfo> appInofList = await InstalledApps.getInstalledApps(true, true);
  List<String> appList = <String>[];
  for(int i = 0; i< appInofList.length; i++){
    appList.add(appInofList[i].packageName!);
  }
  return appList;
}