Google celebrates Hispanic Heritage Month. See how.

unbind method

InterfaceHandle<T> unbind ()

Unbinds the proxy and returns the unbound channel as an interface handle.

Calls on the proxy will no longer be encoded as messages on the bound channel.

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


InterfaceHandle<T>? unbind() {
  if (!_reader.isBound) {
    return null;

  final callback = onUnbind;
  if (callback != null) {

  // TODO(rosswang): Do we need to _reset() here?
  return InterfaceHandle<T>(_reader.unbind());