getPackageInfo static method

Future<PackageInfo> getPackageInfo()

获取应用包信息

Implementation

static Future<PackageInfo> getPackageInfo() {
  return PackageInfo.fromPlatform();
}