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

whenClosed property

Future<void> whenClosed

inherited

A future that completes when the interface is closed.

Implementation

Future<void> get whenClosed {
  if (_currentState == InterfaceState.closed) {
    return Future.value();
  }
  return stateChanges.firstWhere((s) => s == InterfaceState.closed);
}