CloudShader constructor
const
CloudShader({
- Key? key,
- CloudShaderStyle style = CloudShaderStyle.realistic,
- Widget? child,
- double? width,
- double? height,
- bool enabled = true,
- bool animate = true,
- double animationSpeed = 1.0,
- double cloudDensity = 1.0,
- double noisiness = 0.35,
- double flowSpeed = 0.1,
- double cloudHeight = 2.5,
- double brightness = 1.0,
- CloudColorPreset colorPreset = CloudColorPreset.stormy,
- double windSpeed = 1.0,
- double blurScale = 1.0,
- Color? skyColor,
- Color? cloudColor,
- 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);