SnowfallWidget constructor

const SnowfallWidget({
  1. Key? key,
  2. int numberOfSnowflakes = 100,
  3. double windIntensity = 0.1,
  4. double gravity = 0.1,
  5. Size? size,
})

Implementation

const SnowfallWidget({
  Key? key,
  this.numberOfSnowflakes = 100,
  this.windIntensity = 0.1,
  this.gravity = 0.1,
  this.size, // Accepts size parameter
}) : super(key: key);