destroy method

void destroy()

Destroys the channel in both directions. After calling this method, no more data can be sent or received.

Implementation

void destroy() => _controller.destroy();