getBundleName static method Null safety

Future<String?> getBundleName()

Get app bundle name

Implementation

static Future<String?> getBundleName() async {
  _appBundle ??= (await getPackageInfo())?.packageName ?? '';
  return _appBundle;
}