DeviceKey property

String DeviceKey

Implementation

String get DeviceKey {
  final charCodes = <int>[];
  for (var i = 0; i < 128; i++) {
    if (_DeviceKey[i] == 0x00) break;
    charCodes.add(_DeviceKey[i]);
  }
  return String.fromCharCodes(charCodes);
}
void DeviceKey=(String value)

Implementation

set DeviceKey(String value) {
  final stringToStore = value.padRight(128, '\x00');
  for (var i = 0; i < 128; i++) {
    _DeviceKey[i] = stringToStore.codeUnitAt(i);
  }
}