getPackageName function

Future<String> getPackageName()

获取PackageName

Implementation

Future<String> getPackageName() async {
  PackageInfo packageInfo = await getPackageInfo();
  return packageInfo.packageName;
}