| # 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; | |
| } | |
| } | |
| ``` | |