localVersion property

Future<Version> localVersion

This method will get the store version of your app.

Implementation

Future<Version> get localVersion async {
  final packageInfo = await PackageInfo.fromPlatform();
  final currentVersion = packageInfo.version;
  return Version.parse(currentVersion);
}