dollyBy method

void dollyBy(
  1. double amount
)

Dollies toward (amount > 0) or away from (amount < 0) the target, proportional to the current distance and clamped to the distance limits.

Implementation

void dollyBy(double amount) {
  _distanceGoal = (_distanceGoal * math.exp(-amount * dollySpeed)).clamp(
    minDistance,
    maxDistance,
  );
}