Semver class final

A semantic version, major.minor.patch (missing parts are 0; anything after a - or + is ignored).

Implemented types
Annotations
  • @immutable

Constructors

Semver(int major, [int minor = 0, int patch = 0])
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
major → int
final
minor → int
final
patch → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Semver other) → int
Compares this object to another object.
override
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 <(Semver other) → bool
operator ==(Object other) → bool
The equality operator.
override
operator >=(Semver other) → bool

Static Methods

tryParse(String? text) → Semver?
Null when text doesn't start with a number.