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

whenBound property

*<Null safety>*

Future<void> whenBound

inherited

A future that completes when the interface becomes bound.

Implementation

Future<void> get whenBound {
  if (_currentState == InterfaceState.unbound) {
    return stateChanges.firstWhere((s) => s == InterfaceState.bound);
  }
  if (_currentState == InterfaceState.bound) {
    return Future.value();
  }
  return Future.error(
      FidlStateException('Interface will never become bound'));
}