getVersionName method

Future<String> getVersionName()

Implementation

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