Version class

A data class representing a version.

Annotations

Constructors

Version({required int major, required int minor, required int patch, @Default(0) int build})
A data class representing a version.
factory
Version.fromJson(Map<String, dynamic> json)
Version from JSON.
factory
Version.fromString(String string)
Version from string.
factory

Properties

build → int
The build number.
read-onlyinherited
copyWith → $VersionCopyWith<Version>
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
major → int
The major version number.
read-onlyinherited
minor → int
The minor version number.
read-onlyinherited
patch → int
The patch version number.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
version → String
The version number as a string.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator <(Version other) → bool
Returns true if this version is less than other.
operator ==(Object other) → bool
The equality operator.
inherited
operator >(Version other) → bool
Returns true if this version is greater than other.