addChildren method

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

Prepares and registers a list of component to be added on the next game tick.

See addChild for more details.

Implementation

Future<void> addChildren(Iterable<Component> components) async {
  final ps = components.map(addChild);
  await Future.wait(ps);
}