getAppInfo method

  1. @override
Future<AppInfo> getAppInfo(
  1. String bundleId
)
override

Implementation

@override
Future<AppInfo> getAppInfo(String bundleId) async {
  var app = await methodChannel.invokeMethod(
    'getAppInfo',
    {'bundleId': bundleId},
  );
  if (app == null) throw ('No App with package name = $bundleId');
  return AppInfo.create(app);
}