SdkVersion class Core
SDK version container.
Holds SDK version components as small integers plus an optional revision string. Useful for displaying or comparing the embedded SDK version.
- Annotations
-
- @Deprecated('Use setApplicationVersion instead.')
Constructors
- SdkVersion({int minor = 0, int major = 0, int year = 0, int week = 0, String revision = ''})
- Constructor for the SdkVersion class.
-
SdkVersion.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- major ↔ int
-
Major SDK version number, such as 1 in version 1.2;
getter/setter pair
- minor ↔ int
-
Minor SDK version number, such as 2 in version 1.2;
getter/setter pair
- revision ↔ String
-
SDK revision string
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- week ↔ int
-
The week of the year, decimal 1 or 2 digits
getter/setter pair
- year ↔ int
-
SDK year, decimal 1 or 2 digits
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited