getPackageInfo static method

Future<PackageInfo> getPackageInfo()

获取包信息

Implementation

static Future<PackageInfo> getPackageInfo() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  return packageInfo;
}