ImageParticle class
A custom ConfettiParticle that renders an image.
The ImageParticle class extends ConfettiParticle to display an image
as a particle in a confetti animation. It supports creating particles
from both raster image assets and SVG assets, with optional color
modifications.
Constructors
- ImageParticle({required Image image, Color? color})
-
Creates an ImageParticle with the given
imageand optionalcolor.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
{required ConfettiPhysics physics, required Canvas canvas}) → void -
Paints the particle on the provided
canvasusing the givenphysics. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited