getPackageName static method

Future<String> getPackageName()

Implementation

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