init static method

Future<void> init()

Implementation

static Future<void> init() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();

  AppInfo.version = packageInfo.version;
  AppInfo.buildNumber = packageInfo.buildNumber;
  AppInfo.isAndroid = Platform.isAndroid;
  AppInfo.isIOS = Platform.isIOS;
}