getVersion static method

Future<String> getVersion()

获取App版本号

Implementation

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