getVersionApp static method

Future<String> getVersionApp()

Implementation

static Future<String> getVersionApp() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  // String appName = packageInfo.appName;
  // String packageName = packageInfo.packageName;
  // String version = packageInfo.version;
  // String buildNumber = packageInfo.buildNumber;
  return packageInfo.version;
}