advance method Null safety

bool advance(
  1. double elapsedSeconds
)

Update any dirty components in this artboard.

Implementation

bool advance(double elapsedSeconds) {
  bool didUpdate = false;
  for (final controller in _animationControllers) {
    if (controller.isActive) {
      controller.apply(context, elapsedSeconds);
      didUpdate = true;
    }
  }
  if (updateComponents() || didUpdate) {
    return true;
  }
  return false;
}