Version class

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

Annotations

Constructors

Version(int major, int minor, int patch, int buildNumber)
Default constructor for Version.
Version.fromJson(Map<String, dynamic> json)
factory

Properties

buildNumber int
The build number field of the version, such as 4 in version 1.5.3.4.
final
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.
final
minor int
The minor field of the version, such as 5 in version 1.5.3.4.
final
patch int
The patch field of the version, such as 3 in version 1.5.3.4.
final
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.
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.
toString() String
A string representation of this object.
inherited

Operators

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