---
title: "writeAttributeNullableStruct(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertestcluster/writeattributenullablestruct(withvalue:completionhandler:)"
---

# writeAttributeNullableStruct(withValue:completionHandler:)

## Declaration

```swift
func writeAttributeNullableStruct(withValue value: MTRTestClusterClusterSimpleStruct?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeNullableStruct(withValue value: MTRTestClusterClusterSimpleStruct?) async throws
```
