PackageVersionNumberGeneralLibrary class

A parsed semantic version number.

Implemented types

Constructors

PackageVersionNumberGeneralLibrary(int major, int minor, int patch, {String? pre, String? build})
Creates a new PackageVersionNumberGeneralLibrary object.
factory
PackageVersionNumberGeneralLibrary.parse(String text)
Creates a new PackageVersionNumberGeneralLibrary by parsing text.
factory

Properties

build → List<Object>
The build identifier: "foo" in "1.2.3+foo".
final
canonicalizedPackageVersionNumberGeneralLibrary → String
Get a canonicalized string representation of this PackageVersionNumberGeneralLibrary.
no setter
firstPreRelease → PackageVersionNumberGeneralLibrary
Returns the first possible pre-release of this version.
no setter
hashCode → int
The hash code for this object.
no setteroverride
includeMax → bool
If true, then max is allowed by the range.
no setteroverride
includeMin → bool
If true then min is allowed by the range.
no setteroverride
isAny → bool
Returns true if this constraint allows all versions.
no setteroverride
isEmpty → bool
Returns true if this constraint allows no versions.
no setteroverride
isFirstPreRelease → bool
Returns whether this is the first possible pre-release of its version.
no setter
isPreRelease → bool
Whether or not this is a pre-release version.
no setter
major → int
The major version number: "1" in "1.2.3".
final
max → PackageVersionNumberGeneralLibrary
The maximum end of the range.
no setteroverride
min → PackageVersionNumberGeneralLibrary
The minimum end of the range.
no setteroverride
minor → int
The minor version number: "2" in "1.2.3".
final
nextBreaking → PackageVersionNumberGeneralLibrary
Gets the next breaking version number that follows this one.
no setter
nextMajor → PackageVersionNumberGeneralLibrary
Gets the next major version number that follows this one.
no setter
nextMinor → PackageVersionNumberGeneralLibrary
Gets the next minor version number that follows this one.
no setter
nextPatch → PackageVersionNumberGeneralLibrary
Gets the next patch version number that follows this one.
no setter
patch → int
The patch version number: "3" in "1.2.3".
final
preRelease → List<Object>
The pre-release identifier: "foo" in "1.2.3-foo".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allows(PackageVersionNumberGeneralLibrary other) → bool
Tests if other matches this version exactly.
override
allowsAll(PackageVersionNumberGeneralLibraryConstraint other) → bool
Returns true if this constraint allows all the versions that other allows.
override
allowsAny(PackageVersionNumberGeneralLibraryConstraint other) → bool
Returns true if this constraint allows any of the versions that other allows.
override
compareTo(PackageVersionNumberGeneralLibraryRange other) → int
Compares this object to another object.
override
difference(PackageVersionNumberGeneralLibraryConstraint other) → PackageVersionNumberGeneralLibraryConstraint
Returns a PackageVersionNumberGeneralLibraryConstraint that allows PackageVersionNumberGeneralLibrarys allowed by this but not other.
override
intersect(PackageVersionNumberGeneralLibraryConstraint other) → PackageVersionNumberGeneralLibraryConstraint
Returns a PackageVersionNumberGeneralLibraryConstraint that only allows PackageVersionNumberGeneralLibrarys allowed by both this and other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Get non-canonical string representation of this PackageVersionNumberGeneralLibrary.
override
union(PackageVersionNumberGeneralLibraryConstraint other) → PackageVersionNumberGeneralLibraryConstraint
Returns a PackageVersionNumberGeneralLibraryConstraint that allows PackageVersionNumberGeneralLibrarys allowed by either this or other.
override

Operators

operator <(PackageVersionNumberGeneralLibrary other) → bool
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
operator <=(PackageVersionNumberGeneralLibrary other) → bool
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
operator ==(Object other) → bool
The equality operator.
override
operator >(PackageVersionNumberGeneralLibrary other) → bool
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
operator >=(PackageVersionNumberGeneralLibrary other) → bool
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer

Static Properties

none → PackageVersionNumberGeneralLibrary
No released version: i.e. "0.0.0".
no setter

Static Methods

antiprioritize(PackageVersionNumberGeneralLibrary a, PackageVersionNumberGeneralLibrary b) → int
Like prioritize, but lower version numbers are considered greater than higher version numbers.
primary(List<PackageVersionNumberGeneralLibrary> versions) → PackageVersionNumberGeneralLibrary
Returns the primary version out of versions.
prioritize(PackageVersionNumberGeneralLibrary a, PackageVersionNumberGeneralLibrary b) → int
Compares a and b to see which takes priority over the other.