deviceId static method
Implementation
static String deviceId(Object? value) {
if (value is! String ||
!RegExp(r'^ble_[a-zA-Z0-9_-]{16,80}$').hasMatch(value)) {
throw const FormatException('Expected an opaque BLE device handle.');
}
return value;
}