getInstalledApps static method

Future<List<BundleInfo>> getInstalledApps()

method that returns all device installed applications,
it List of AppDetail objects that contains all application information,
Note -: This method is supported only on Android platform

Implementation

static Future<List<BundleInfo>> getInstalledApps() async {
  List<dynamic> listOfApps = await _channel.invokeMethod(GET_INSTALLED_APPS);
  return listOfApps
      .map((map) => BundleInfo.fromJson(map))
      .toList(growable: false);
}