ensureAdd method

Future<void> ensureAdd(
  1. Component component
)

Makes sure that the component is added to the tree if you wait for the returned future to resolve.

Implementation

Future<void> ensureAdd(Component component) async {
  await add(component);
  await component.findGame()!.ready();
}