close method

void close ()

Closes the underlying channel.

Implementation

void close() {
  _channel?.close();
  _channel = null;
}