getVersion function

Future<String> getVersion()

获取Version

Implementation

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