$Version class Null safety

Used by:

  • containeranalysis:v1 : Version
  • ondemandscanning:v1 : Version


$Version({int? epoch, String? fullName, bool? inclusive, String? kind, String? name, String? revision})
$Version.fromJson(Map _json)


epoch int?
Used to correct mistakes in the version numbering scheme.
read / write
fullName String?
Human readable version string. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
inclusive bool?
Whether this version is specifying part of an inclusive range. [...]
read / write
kind String?
Distinguishes between sentinel MIN/MAX versions and normal versions. [...]
read / write
name String?
Required only when version kind is NORMAL. [...]
read / write
revision String?
The iteration of the package build from the above version.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]