ParticleBehaviour constructor

ParticleBehaviour({
  1. ParticleOptions options = const ParticleOptions(),
  2. 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!);
}