ensureRemoveAll method
Makes sure that the components
are removed from the tree if you wait for
the returned future to resolve.
Implementation
Future<void> ensureRemoveAll(Iterable<Component> components) async {
removeAll(components);
await components.first.findGame()!.ready();
}