RectangleEmitterShape constructor

const RectangleEmitterShape(
  1. double width,
  2. double height
)

Spawns particles inside a centered rectangle of width by height.

Implementation

const RectangleEmitterShape(this.width, this.height);