CloudShader constructor

const CloudShader({
  1. Key? key,
  2. CloudShaderStyle style = CloudShaderStyle.realistic,
  3. Widget? child,
  4. double? width,
  5. double? height,
  6. bool enabled = true,
  7. bool animate = true,
  8. double animationSpeed = 1.0,
  9. double cloudDensity = 1.0,
  10. double noisiness = 0.35,
  11. double flowSpeed = 0.1,
  12. double cloudHeight = 2.5,
  13. double brightness = 1.0,
  14. CloudColorPreset colorPreset = CloudColorPreset.stormy,
  15. double windSpeed = 1.0,
  16. double blurScale = 1.0,
  17. Color? skyColor,
  18. Color? cloudColor,
  19. double opacity = 1.0,
})

Implementation

const CloudShader({
  super.key,
  this.style = CloudShaderStyle.realistic,
  this.child,
  this.width,
  this.height,
  this.enabled = true,
  this.animate = true,
  this.animationSpeed = 1.0,
  this.cloudDensity = 1.0,
  this.noisiness = 0.35,
  this.flowSpeed = 0.1,
  this.cloudHeight = 2.5,
  this.brightness = 1.0,
  this.colorPreset = CloudColorPreset.stormy,
  this.windSpeed = 1.0,
  this.blurScale = 1.0,
  this.skyColor,
  this.cloudColor,
  this.opacity = 1.0,
})  : assert(animationSpeed >= 0.0),
      assert(cloudDensity >= 0.0),
      assert(noisiness >= 0.0),
      assert(flowSpeed >= 0.0),
      assert(cloudHeight >= 0.0),
      assert(brightness >= 0.0),
      assert(windSpeed >= 0.0),
      assert(blurScale >= 0.0),
      assert(opacity >= 0.0 && opacity <= 1.0);