getPackageInfo static method

Future<PackageInfo> getPackageInfo()

Implementation

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