getVersionNumber static method

Future<String> getVersionNumber()

Returns the short version number of the application. @returns A String representing the version number.

Implementation

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