ScannerOverlay constructor
const
ScannerOverlay({})
Assertion is provided to prevent invisible color combinations & to avoid design glitches
Implementation
const ScannerOverlay({
super.key,
required this.height,
required this.width,
this.borderColor,
this.borderThickness,
this.borderRadius,
}) : assert(borderColor != Colors.transparent &&
(borderRadius ?? 20) < (height ?? 300) / 3);