update method

  1. @override
void update(
  1. double dt
)
override

Implementation

@override
void update(double dt) {
  super.update(dt);
  final double c = curve?.transform(percentage) ?? 1.0;

  component.width = _original.width + _diff.width * c * _dir.x;
  component.height = _original.height + _diff.height * c * _dir.y;
}