apply method

  1. @override
void apply(
  1. CoreContext core,
  2. double elapsedSeconds
)
inherited

Apply animation to objects registered in core. Note that a core context is specified as animations can be applied to instances.

Implementation

@override
void apply(CoreContext core, double elapsedSeconds) {
  if (artboard?.hasChangedDrawOrderInLastUpdate ?? false) {
    _sortHittableComponents();
  }

  bool keepGoing = false;
  for (final layerController in layerControllers) {
    if (layerController.apply(core, elapsedSeconds)) {
      keepGoing = true;
    }
  }
  advanceInputs();
  isActive = keepGoing;

  applyEvents();
}