options property

ParticleOptions get options

Gets the particle options used to configure this behaviour.

Implementation

ParticleOptions get options => _options!;
set options (ParticleOptions value)

Set the particle options used to configure this behaviour.

Changing this value will cause the currently spawned particles to update.

Implementation

set options(ParticleOptions value) {
  if (value == _options) return;
  ParticleOptions? oldOptions = _options;
  _options = value;

  if (_options!.image == null)
    _particleImage = null;
  else if (_particleImage == null || oldOptions!.image != _options!.image)
    _convertImage(_options!.image!);

  onOptionsUpdate(oldOptions);
}