SphereEmitterShape constructor

const SphereEmitterShape({
  1. double radius = 1.0,
  2. bool surfaceOnly = false,
  3. bool hemisphere = false,
})

Creates a sphere emitter of the given radius.

Implementation

const SphereEmitterShape({
  this.radius = 1.0,
  this.surfaceOnly = false,
  this.hemisphere = false,
}) : assert(radius >= 0);