appVersion top-level property

Future<String> get appVersion

Implementation

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