DeviceID property
String
DeviceID
Implementation
String get DeviceID {
final charCodes = <int>[];
for (var i = 0; i < 128; i++) {
if (_DeviceID[i] == 0x00) break;
charCodes.add(_DeviceID[i]);
}
return String.fromCharCodes(charCodes);
}
Implementation
set DeviceID(String value) {
final stringToStore = value.padRight(128, '\x00');
for (var i = 0; i < 128; i++) {
_DeviceID[i] = stringToStore.codeUnitAt(i);
}
}