close method

void close()

close connection

Implementation

void close() {
  if (_channel != null) _channel?.sink.close();

  super.dispose();
}