ScanFlash constructor

const ScanFlash({
  1. Key? key,
  2. required ScanSession session,
  3. required Widget child,
  4. ScanFlashColors colors = const ScanFlashColors(),
  5. Duration duration = const Duration(milliseconds: 280),
  6. double opacity = 0.35,
})

Creates a flash overlay.

Implementation

const ScanFlash({
  super.key,
  required this.session,
  required this.child,
  this.colors = const ScanFlashColors(),
  this.duration = const Duration(milliseconds: 280),
  this.opacity = 0.35,
});