close method

void close()

Implementation

void close() {
  channel?.sink.close();
  channel = null;
}