adoptStateFrom method

void adoptStateFrom(
  1. ParticleSpoilerDrawer other
)

Implementation

void adoptStateFrom(ParticleSpoilerDrawer other) {
  _particles
    ..clear()
    ..addAll(other._particles);
  _maxParticleSize = other._maxParticleSize;
  _particleColor = other._particleColor;
  _particleSpeed = other._particleSpeed;
  _shapePath = other._shapePath;
  onParticlesInitialized();
}