add method

  1. @override
bool add(
  1. Component c
)
override

Prepares and registers one component to be added on the next game tick.

This is the interface compliant version; if you want to provide an explicit gameRef or await for the Loadable.onLoad, use addChild.

Note: the component is only added on the next tick. This method always returns true.

Implementation

@override
bool add(Component c) {
  addChild(c);
  return true;
}