getAppVersion function

Future<String> getAppVersion()

getAppVersion method this method will return the current version of the app

Implementation

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