ensureRemoveAll method

Future<void> ensureRemoveAll(
  1. Iterable<Component> components
)

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();
}