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

unbind method

InterfaceRequest<T> unbind ()

Unbinds impl and returns the unbound channel as an interface request.

Stops listening for messages on the bound channel, wraps the channel in an interface request of the appropriate type, and returns that interface request.

The object must have previously been bound (e.g., using bind).

Implementation

InterfaceRequest<T> unbind() {
  assert(isBound);
  final InterfaceRequest<T> result = InterfaceRequest<T>(_reader.unbind());
  _impl = null;

  if (onUnbind != null) {
    onUnbind();
  }

  return result;
}