blob: 1889ed913d7f75f36242bf6632a44389b65f4f15 [file] [log] [blame] [view] [edit]
# whenClosed property
Future<void> whenClosed
_<span class="feature inherited">inherited</span>_
<p>A future that completes when the interface is closed.</p>
## Implementation
```dart
Future<void> get whenClosed {
if (_currentState == InterfaceState.closed) {
return Future.value();
}
return stateChanges.firstWhere((s) => s == InterfaceState.closed);
}
```