version static method

Future<String> version()

获取包版本

Implementation

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