PrismVersion class
A parsed version value with component-wise comparison.
- Implemented types
Constructors
-
PrismVersion(List<
int> components) -
Creates a version from already-parsed components.
const
- PrismVersion.parse(String input)
-
Parses a version string such as
1.2.3,1.2.3+4, orv2.0.factory
Properties
- build → int
-
Build component, or
0when absent.no setter -
components
→ List<
int> -
Numeric components, most significant first.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- major → int
-
Major component, or
0when absent.no setter - minor → int
-
Minor component, or
0when absent.no setter - patch → int
-
Patch component, or
0when absent.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
PrismVersion 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 <(
PrismVersion other) → bool -
Whether this version is older than
other. -
operator <=(
PrismVersion other) → bool -
Whether this version is older than or equal to
other. -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
PrismVersion other) → bool -
Whether this version is strictly newer than
other. -
operator >=(
PrismVersion other) → bool -
Whether this version is newer than or equal to
other.