Version class abstract

Represents a generic version with major, minor, patch and buildNumber fields.

Constructors

Version({required int major, required int minor, required int patch, required int buildNumber})
Default constructor for Version.
factory
Version.fromJson(Map<String, dynamic> json)
Alternate constructor that creates a Version from a json.
factory

Properties

buildNumber → int
The build number field of the version, such as 4 in version 1.5.3.4.
no setter
hashCode → int
The hash code for this object.
no setterinherited
major → int
The major field of the version, such as 1 in version 1.5.3.4.
no setter
minor → int
The minor field of the version, such as 5 in version 1.5.3.4.
no setter
patch → int
The patch field of the version, such as 3 in version 1.5.3.4.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Map<String, dynamic> json) → dynamic
Returns a value of the type you specify, deserialized from a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited