---
title: "writeAttributeNullableStruct(withValue:params:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/writeattributenullablestruct(withvalue:params:completion:)"
---

# writeAttributeNullableStruct(withValue:params:completion:)

## Declaration

```swift
func writeAttributeNullableStruct(withValue value: MTRUnitTestingClusterSimpleStruct?, params: MTRWriteParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeNullableStruct(withValue value: MTRUnitTestingClusterSimpleStruct?, params: MTRWriteParams?) async throws
```
