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

Binding<T> constructor

Binding<T>()

Creates a binding object in an unbound state.

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

Implementation

Binding() {
  _reader
    ..onReadable = _handleReadable
    ..onError = _handleError;
}