WidgetSpoilerConfig constructor
const
WidgetSpoilerConfig({
- required ImageFilter imageFilter,
- int maxActiveWaves = 4,
- double particleDensity = 0.1,
- double particleSpeed = 0.2,
- Color particleColor = Colors.white,
- double maxParticleSize = 1.0,
- bool enableFadeAnimation = false,
- double fadeRadius = 10.0,
- bool isEnabled = true,
- bool enableGestureReveal = false,
- SpoilerMask? maskConfig,
- 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,
});