ImageParticle.ratio constructor
ImageParticle.ratio({})
Implementation
ImageParticle.ratio({
required this.particleImage,
/// % Ratio of the original image size
required double sizeRatio,
required Color color,
required Offset velocity,
double rotationSpeed = 0,
}) : this.height = particleImage.height.toDouble() * sizeRatio,
this.width = particleImage.width.toDouble() * sizeRatio,
super(color: color, velocity: velocity, rotationSpeed: rotationSpeed);