Honoring Asian Pacific American Heritage Month. See how.

close method

void close ()

Close the bound channel.

This function does nothing if the object is not bound.

Implementation

void close() {
  if (isBound) {
    _reader.close();
    _impl = null;

    final callback = onClose;
    if (callback != null) {
      callback();
    }
  }
}