packageName static method

Future<String> packageName()

获取包名称

Implementation

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