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

AsyncBinding<T> constructor

AsyncBinding<T>(String $interfaceName)

Creates a binding object in an unbound state.

Rather than creating a AsyncBinding<T> object directly, you typically create a TBinding object, which are subclasses of AsyncBinding<T> created by the FIDL compiler for a specific interface.

Implementation

AsyncBinding(this.$interfaceName) {
  _reader
    ..onReadable = _handleReadable
    ..onError = _handleError;
}