Version class Core

Define the content version with major and minor.

Implemented types

Constructors

Version({int encodedVersion = 0})
Version.fromJson(Map<String, dynamic> json)
factory
Version.fromMajorAndMinor({required int major, required int minor})
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isValid bool
Check if the version is valid
no setter
major int
Major version number
no setter
minor int
Minor version number
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Version 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.
inherited

Operators

operator ==(covariant Version other) bool
The equality operator.
override