WidgetSpoilerConfig constructor

const WidgetSpoilerConfig({
  1. required ImageFilter imageFilter,
  2. int maxActiveWaves = 4,
  3. double particleDensity = 0.1,
  4. double particleSpeed = 0.2,
  5. Color particleColor = Colors.white,
  6. double maxParticleSize = 1.0,
  7. bool enableFadeAnimation = false,
  8. double fadeRadius = 10.0,
  9. bool isEnabled = true,
  10. bool enableGestureReveal = false,
  11. SpoilerMask? maskConfig,
  12. ValueChanged<bool>? onSpoilerVisibilityChanged,
})

Creates a widget spoiler configuration with the specified parameters.

Inherits base properties from SpoilerConfig while adding an image filter and wave control for additional customization.

Implementation

const WidgetSpoilerConfig({
  required this.imageFilter,
  this.maxActiveWaves = 4,
  super.particleDensity = 0.1,
  super.particleSpeed = 0.2,
  super.particleColor = Colors.white,
  super.maxParticleSize = 1.0,
  super.enableFadeAnimation = false,
  super.fadeRadius = 10.0,
  super.isEnabled = true,
  super.enableGestureReveal = false,
  super.maskConfig,
  super.onSpoilerVisibilityChanged,
});