TextSpoilerConfig constructor
const
TextSpoilerConfig({
- TextStyle? textStyle,
- TextSelection? textSelection,
- TextAlign? textAlign,
- int? maxLines,
- bool? isEllipsis,
- double particleDensity = 20.0,
- double particleSpeed = 0.2,
- Color particleColor = Colors.white70,
- double maxParticleSize = 1.0,
- bool enableFadeAnimation = false,
- double fadeRadius = 10.0,
- bool isEnabled = true,
- bool enableGestureReveal = false,
- SpoilerMask? maskConfig,
- ValueChanged<
bool> ? onSpoilerVisibilityChanged,
Creates a text spoiler configuration with the specified parameters.
Inherits base properties from SpoilerConfig while adding text-specific customizations such as styling, alignment, and selection.
Implementation
const TextSpoilerConfig({
this.textStyle,
this.textSelection,
this.textAlign,
this.maxLines,
this.isEllipsis,
super.particleDensity = 20.0,
super.particleSpeed = 0.2,
super.particleColor = Colors.white70,
super.maxParticleSize = 1.0,
super.enableFadeAnimation = false,
super.fadeRadius = 10.0,
super.isEnabled = true,
super.enableGestureReveal = false,
super.maskConfig,
super.onSpoilerVisibilityChanged,
});