blob: 3e901efe27907ec6cd7c1ab7221c6bdda71883a8 [file] [log] [blame] [view]
# close method
void close
([int statusCode])
<p>Close the bound channel.</p>
<p>This function does nothing if the object is not bound.</p>
## Implementation
```dart
void close([int? statusCode]) {
if (isBound) {
if (statusCode != null) {
_writeEpitaph(statusCode);
}
_reader.close();
_impl = null;
state = InterfaceState.closed;
}
}
```