apply method Null safety

  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) {
  bool keepGoing = false;
  for (final layerController in layerControllers) {
    if (layerController.apply(this, core, elapsedSeconds, inputValues)) {
      keepGoing = true;
    }
  }
  advanceInputs();
  isActive = keepGoing;
}