Version class Core
Compact major/minor version for content (usually roadmaps).
Encodes a major/minor pair. It can be compared to other Version.
Usually provided by classes such as ContentStoreItem, OffBoardListener and MapDetails.
See also:
- ContentStoreItem - Obtain version information for content store items.
- OffBoardListener - Get notified about content updated and other events.
- Implemented types
Constructors
- Version({int encodedVersion = 0})
- Constructor for the Version class.
-
Version.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
- Version.fromMajorAndMinor({required int major, required int minor})
-
Serializes this instance to a JSON-compatible map.
factory
Properties
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.
override
Operators
-
operator ==(
covariant Version other) → bool -
The equality operator.
override