ParticleBehaviour constructor
ParticleBehaviour({
- ParticleOptions options = const ParticleOptions(),
- Paint? paint,
Creates a new particle behaviour.
Default values will be assigned to the parameters if not specified.
Implementation
ParticleBehaviour({
ParticleOptions options = const ParticleOptions(),
Paint? paint,
}) {
_options = options;
this.particlePaint = paint;
if (options.image != null) _convertImage(options.image!);
}