SemanticVersion class

Mixed in types

Constructors

SemanticVersion({int major = 0, int minor = 0, int patch = 0, int? preReleaseMajor, int? preReleaseMinor})
SemanticVersion.parse(String? versionString)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isPreRelease bool
no setter
major int
getter/setter pair
minor int
getter/setter pair
patch int
getter/setter pair
preReleaseMajor int?
getter/setter pair
preReleaseMinor int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(SemanticVersion other) int
Compares this object to another object.
override
downgrade({bool downgradeMajor = false, bool downgradeMinor = false, bool downgradePatch = false}) SemanticVersion
Returns a new SemanticVersion that is downgraded from this.
isSupported({required SemanticVersion minSupportedVersion}) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator <(SemanticVersion other) bool
inherited
operator <=(SemanticVersion other) bool
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(SemanticVersion other) bool
inherited
operator >=(SemanticVersion other) bool
inherited