getPackageName static method

Future<String> getPackageName()

Implementation

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