getAppVersionStatus method

Future<AppVersionStatus?> getAppVersionStatus()

Implementation

Future<AppVersionStatus?> getAppVersionStatus() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  if (Platform.isAndroid) {
    return _getAndroidVersion(packageInfo);
  } else if (Platform.isIOS) {
    return _getIOSVersion(packageInfo);
  } else {
    printDebugText(
        'The target platform "${Platform.operatingSystem}" is not supported this package');
  }
}