Version class

Version contains structured information about the version of a package.

Constructors

Version({Input<int>? epoch, Input<String>? fullName, Input<bool>? inclusive, required Input<VersionKind> kind, Input<String>? name, Input<String>? revision})
Creates a new Version. epoch Used to correct mistakes in the version numbering scheme. fullName Human readable version string. This string is of the form :- and is only set when kind is NORMAL. inclusive Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range. kind Distinguishes between sentinel MIN/MAX versions and normal versions. name Required only when version kind is NORMAL. The main part of the version name. revision The iteration of the package build from the above version.
const
Version.fromMap(Map<String, dynamic> map)
factory

Properties

epoch → Input<int>?
Used to correct mistakes in the version numbering scheme.
final
fullName → Input<String>?
Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
final
hashCode → int
The hash code for this object.
no setterinherited
inclusive → Input<bool>?
Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
final
kind → Input<VersionKind>
Distinguishes between sentinel MIN/MAX versions and normal versions.
final
name → Input<String>?
Required only when version kind is NORMAL. The main part of the version name.
final
revision → Input<String>?
The iteration of the package build from the above version.
final
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
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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