TextSpoilerConfig constructor

const TextSpoilerConfig({
  1. TextStyle? textStyle,
  2. TextSelection? textSelection,
  3. TextAlign? textAlign,
  4. int? maxLines,
  5. bool? isEllipsis,
  6. double particleDensity = 20.0,
  7. double particleSpeed = 0.2,
  8. Color particleColor = Colors.white70,
  9. double maxParticleSize = 1.0,
  10. bool enableFadeAnimation = false,
  11. double fadeRadius = 10.0,
  12. bool isEnabled = true,
  13. bool enableGestureReveal = false,
  14. SpoilerMask? maskConfig,
  15. 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,
});