loadState method

Future<void> loadState()

Implementation

Future<void> loadState() async {
  final info = await PackageInfo.fromPlatform();
  appName = info.appName;
  packageName = info.packageName;
  version = info.version;
  buildNumber = info.buildNumber;
  notificationContent = "Time to play " + info.appName + "!.";
  shareDescription =
      "This is good logical game, can you downloaded from Google Play by going to https://play.google.com/store/apps/details?id=" +
          info.packageName;
  if (AdsInitialization.isAndroid() && _notificationController != null) {
    await _notificationController!.loadDefaultNotification(
      appName,
      notificationContent,
      packageName,
    );
  }
}