sdkVersion property

String get sdkVersion

Get SKD version

'0.1.2' 0 -> version, 1 -> subVersion, 2 -> revision

The revision is unsigned hexadecimal

Returns

  • The sdk version as String

Throws

  • An exception if it fails.

Implementation

static String get sdkVersion {
  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';
}