FadingMovingParticle constructor

FadingMovingParticle({
  1. required double lifespan,
  2. required Vector2 position,
  3. required Vector2 speed,
  4. required Vector2 acceleration,
  5. required double radius,
  6. required Color baseColor,
  7. required double fadeOutDuration,
})

A particle that fades out over time while moving.

Implementation

FadingMovingParticle({
  required double lifespan,
  required this.position,
  required this.speed,
  required this.acceleration,
  required this.radius,
  required this.baseColor,
  required this.fadeOutDuration,
}) : super(lifespan: lifespan);