SemVer class final

Inheritance

Constructors

SemVer(int major, int minor, int patch, {List<String> preRelease = const <String>[], String? build})

Properties

build → String
Build information relevant to the version. Does not contribute to sorting.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isPreRelease → bool
Indicates that the version is a pre-release. Returns true if preRelease has any segments, otherwise false
no setterinherited
major → int
The major number of the version, incremented when making breaking changes.
finalinherited
minor → int
The minor number of the version, incremented when adding new functionality in a backwards-compatible manner.
finalinherited
patch → int
The patch number of the version, incremented when making backwards-compatible bug fixes.
finalinherited
preRelease → List<String>
Pre-release information segments.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Version? other) → int
Compares this object to another object.
inherited
incrementMajor() → Version
Creates a new Version with the major version number incremented.
inherited
incrementMinor() → Version
Creates a new Version with the minor version number incremented.
inherited
incrementPatch() → Version
Creates a new Version with the patch version number incremented.
inherited
incrementPreRelease() → Version
Creates a new Version with the right-most numeric preRelease segment incremented. If no numeric segment is found, one will be added with the value "1".
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Returns a String representation of the Version.
inherited

Operators

operator <(dynamic o) → bool
Determines whether the left-hand Version represents a lower precedence than the right-hand Version.
inherited
operator <=(dynamic o) → bool
Determines whether the left-hand Version represents an equal or lower precedence than the right-hand Version.
inherited
operator ==(dynamic o) → bool
Determines whether the left-hand Version represents an equal precedence to the right-hand Version.
inherited
operator >(dynamic o) → bool
Determines whether the left-hand Version represents a greater precedence than the right-hand Version.
inherited
operator >=(dynamic o) → bool
Determines whether the left-hand Version represents an equal or greater precedence than the right-hand Version.
inherited

Static Methods

find(String source) → List<SemVer>
parse(String source) → SemVer
Creates a Version instance from a string.
override