appName static method

Future<String> appName()

获取App名称

Implementation

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