version property

Version version

The version of the application and of the defining package.

Implementation

Version get version {
  final ref = getDefiningPackageRef();
  return ref == null ? Version.none : ref.version;
}