blob: 6431d01e9ddcc6fbc470541fc28f77a6e09e882d [file] [log] [blame] [view]
# close method
*[<Null safety>](https://dart.dev/null-safety)*
- @override
void close
()
_<span class="feature">override</span>_
<p>Close this node and all of its bindings and children.</p>
## Implementation
```dart
@override
void close() {
_isClosed = true;
// schedule a task because if user closes this as soon as
// they open a connection, dart fidl binding throws exception due to
// event on this fidl.
scheduleMicrotask(() {
for (final c in _connections) {
c.closeBinding();
}
_connections.clear();
});
}
```