getVersionCode static method

Future<String> getVersionCode()

获取应用版本号

Implementation

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