getAllPackageInfo static method

Future<TBLPackageInfo> getAllPackageInfo()

Implementation

static Future<TBLPackageInfo> getAllPackageInfo() async {
  if (_packageInfoData != null) {
    return _packageInfoData!;
  }

  final packageInfo = await TBLPackageInfoPlatform.instance.getAllPackageInfo();

  _packageInfoData = TBLPackageInfo(
    appName: packageInfo.appName,
    packageName: packageInfo.packageName,
    version: packageInfo.version,
  );

  return _packageInfoData!;
}