ScannerOverlay constructor

const ScannerOverlay({
  1. Key? key,
  2. required double? height,
  3. required double? width,
  4. Color? borderColor,
  5. double? borderThickness,
  6. double? borderRadius,
})

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);