blob: da0c4ba5ef49cc917c2244369d3aa5bda9d4af8d [file] [log] [blame] [view]
# unbind method
[InterfaceRequest](../../package-fidl_fidl/InterfaceRequest-class.md)<T> unbind
()
<p>Unbinds <a href="../../package-fidl_fidl/Binding/impl.md">impl</a> and returns the unbound channel as an interface request.</p>
<p>Stops listening for messages on the bound channel, wraps the channel in an
interface request of the appropriate type, and returns that interface
request.</p>
<p>The object must have previously been bound (e.g., using <a href="../../package-fidl_fidl/Binding/bind.md">bind</a>).</p>
## Implementation
```dart
InterfaceRequest<T> unbind() {
assert(isBound);
final InterfaceRequest<T> result = InterfaceRequest<T>(_reader.unbind());
_impl = null;
final callback = onUnbind;
if (callback != null) {
callback();
}
return result;
}
```