ImageParticle constructor

ImageParticle({
  1. required Image image,
  2. Color? color,
})

Creates an ImageParticle with the given image and optional color.

  • image is required and represents the particle's visual content.
  • color can be used to apply a color filter to the particle.

Implementation

ImageParticle({required this.image, this.color});