WeatherRainLayer constructor

const WeatherRainLayer({
  1. Key? key,
  2. required Widget child,
  3. double? width,
  4. double? height,
  5. double rainAmount = 0.75,
  6. double maxBlur = 6.0,
  7. double minBlur = 2.0,
  8. double refraction = 40.0,
  9. double speed = 1.0,
  10. bool enabled = true,
  11. bool useBackdrop = false,
  12. bool lockToScreen = false,
})

Implementation

const WeatherRainLayer({
  super.key,
  required this.child,
  this.width,
  this.height,
  this.rainAmount = 0.75,
  this.maxBlur = 6.0,
  this.minBlur = 2.0,
  this.refraction = 40.0,
  this.speed = 1.0,
  this.enabled = true,
  this.useBackdrop = false,
  this.lockToScreen = false,
})  : assert(rainAmount >= 0.0 && rainAmount <= 1.0),
      assert(maxBlur >= 0.0),
      assert(minBlur >= 0.0),
      assert(maxBlur >= minBlur),
      assert(speed >= 0.0);