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
-
- Object
- SpoilerConfig
- WidgetSpoilerConfig
- Annotations
Constructors
-
WidgetSpoilerConfig.new({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.
const
- 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
- fadeRadius → double
-
The radius over which the fade effect is applied.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- 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
Methods
-
copyWith(
{double? particleDensity, double? particleSpeed, Color? particleColor, double? maxParticleSize, bool? enableFadeAnimation, double? fadeRadius, bool? isEnabled, bool? enableGestureReveal, SpoilerMask? maskConfig, ValueChanged< bool> ? onSpoilerVisibilityChanged}) → SpoilerConfig -
inherited
-
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.
inherited