scaling method

ScalingParticle scaling({
  1. double to = 0,
  2. Curve curve = Curves.linear,
})

Wraps this particle with a ScalingParticle.

Allows for changing the size of this particle and/or its children.

Implementation

ScalingParticle scaling({double to = 0, Curve curve = Curves.linear}) {
  return ScalingParticle(
    to: to,
    child: this,
    lifespan: _lifespan,
    curve: curve,
  );
}