update method

void update(
  1. double dt,
  2. Vector2 size
)

Implementation

void update(
  double dt,
  Vector2 size,
) {
  this.size = size;
  if (_playing) {
    _fastAnimation?.update(dt);
    _current.size = size;
    _current.update(dt);
  }
  if (_strokeSize.isZero()) {
    _strokeSize = Vector2(
      size.x + _strokeWidth * 2,
      size.y + _strokeWidth * 2,
    );
  }
}