getBuildInMarketList static method

List<AppMarketInfo> getBuildInMarketList(
  1. List<String> packageNames
)

通过包名获取内置应用商店

Implementation

static List<AppMarketInfo> getBuildInMarketList(List<String> packageNames) {
  List<AppMarketInfo> marketList = [];
  packageNames.forEach((packageName) {
    buildInMarketList.forEach((f) {
      if (f.packageName == packageName) {
        marketList.add(f);
      }
    });
  });
  return marketList;
}