getAppVersion method

Future<String> getAppVersion()

Implementation

Future<String> getAppVersion() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  return packageInfo.version;
}