Google celebrates Hispanic Heritage Month. 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).


InterfaceRequest<T> unbind() {
  if (!isBound) {
    throw FidlStateException("AsyncBinding<${$interfaceName}> isn't bound");
  final InterfaceRequest<T> result = InterfaceRequest<T>(_reader.unbind());
  _impl = null;

  state = InterfaceState.closed;

  return result;