WidgetSpoilerConfig class

Configuration for the widget-based spoiler effect.

This extends SpoilerConfig and adds additional properties specific to widgets, including an image filter effect and wave animations.

Inheritance
Annotations

Constructors

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, double fadeEdgeThickness = 20.0, bool isEnabled = true, bool enableGestureReveal = false, SpoilerMask? maskConfig, ValueChanged<bool>? onSpoilerVisibilityChanged, ShaderConfig? shaderConfig, ParticleConfig? particleConfig, FadeConfig? fadeConfig})
Creates a widget spoiler configuration with the specified parameters.
WidgetSpoilerConfig.defaultConfig()
Returns a default configuration for the widget spoiler effect.
factory

Properties

enableFadeAnimation → bool?
Determines whether the particles will fade out over time.
finalinherited
enableGestureReveal → bool
Determines whether user gestures can be used to reveal the spoiler.
finalinherited
fadeConfig → FadeConfig?
Fade configuration.
finalinherited
fadeEdgeThickness → double?
Padding near the fade radius where particles get brighter/larger in shader.
finalinherited
fadeRadius → double?
The padding over which the fade effect is applied.
finalinherited
hashCode → int
The hash code for this object.
no setteroverride
imageFilter → ImageFilter
The image filter applied to the widget when the spoiler is active.
final
isEnabled → bool
Controls whether the spoiler effect is active.
finalinherited
maskConfig → SpoilerMask?
Optional configuration for applying a custom mask to the spoiler.
finalinherited
maxActiveWaves → int
The maximum number of active waves used for the spoiler effect.
final
maxParticleSize → double?
The maximum size a particle can have.
finalinherited
onSpoilerVisibilityChanged → ValueChanged<bool>?
Optional callback that is invoked when the visibility of the spoiler changes.
finalinherited
particleColor → Color?
The color of the particles.
finalinherited
particleConfig → ParticleConfig
Particle configuration.
finalinherited
particleDensity → double?
The density of the particles, affecting the number of particles displayed.
finalinherited
particleSpeed → double?
The speed at which particles move.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shaderConfig → ShaderConfig?
Optional configuration for applying a custom shader to the spoiler.
finalinherited

Methods

copyWith({double? particleDensity, double? particleSpeed, Color? particleColor, double? maxParticleSize, bool? enableFadeAnimation, double? fadeRadius, double? fadeEdgeThickness, bool? isEnabled, bool? enableGestureReveal, SpoilerMask? maskConfig, ValueChanged<bool>? onSpoilerVisibilityChanged, ShaderConfig? shaderConfig, FadeConfig? fadeConfig, ParticleConfig? particleConfig, ImageFilter? imageFilter, int? maxActiveWaves}) → WidgetSpoilerConfig
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override