applicationVersion property
String
get
applicationVersion
Returns the application version as a human-readable string.
The returned format is major.minor.revision where revision is shown
as an uppercase hexadecimal string.
It is used to store the application version set via setApplicationVersion. If no version was set, the returned string will be the sdkVersion except the year and week part.
Returns
- String: the formatted SDK version (for example
0.1.AB12).
Implementation
static String get applicationVersion {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getApplicationVersion',
);
final dynamic resultMap = resultString['result'];
final int first = resultMap['first'];
final int second = resultMap['second'];
final int third = resultMap['third'];
final int unsignedValue = third & 0xFFFFFFFF;
final String hexValue = unsignedValue.toRadixString(16).toUpperCase();
return '$first.$second.$hexValue';
}