deviceId property
String
get
deviceId
Stable per-install device identifier.
Throws SDKException before initialize has run.
Implementation
static String get deviceId {
if (!DartBridge.isInitialized) {
throw SDKException.notInitialized(
'Device ID is unavailable before RunAnywhere.initialize().',
);
}
final value = DartBridgeDevice.cachedDeviceId;
if (value == null || value.isEmpty) {
throw StateError('Device ID was not resolved during initialization');
}
return value;
}