Version class

Version contains structured information about the version of a package.

Constructors

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

Properties

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

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited