ScannerEffect constructor

const ScannerEffect({
  1. Duration duration = const Duration(milliseconds: 1200),
  2. Curve curve = Curves.easeInOut,
  3. Color scanColor = Colors.cyan,
  4. double scanWidth = 0.15,
  5. double glowWidth = 0.3,
  6. Duration delayBetweenChars = Duration.zero,
})

Creates a scanner-style reveal animation.

duration — one full scan cycle duration. curve — easing curve for the scan. scanColor — color of the bright scan highlight. scanWidth — bright scan band width as fraction of text. glowWidth — trailing glow width as fraction of text. delayBetweenChars — stagger (zero for smooth scan sweep).

Implementation

const ScannerEffect({
  super.duration = const Duration(milliseconds: 1200),
  super.curve = Curves.easeInOut,
  this.scanColor = Colors.cyan,
  this.scanWidth = 0.15,
  this.glowWidth = 0.3,
  super.delayBetweenChars = Duration.zero,
});