updateSize method

dynamic updateSize(
  1. double radius,
  2. double time
)

reduce the blob size according to time ratio

Implementation

updateSize(double radius, double time) {
  assert(time <= 1.0 && time >= 0, "time must be between 0 and 1");
  var newRadius = lerpDouble(radius, baseRadius, time);
  if (newRadius != null) {
    this.radius = newRadius;
  }
}