Google is committed to advancing racial equity for Black communities. See how.

close method

*<Null safety>*

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();
    }
  }
}