DynamicScannerOverlay constructor

const DynamicScannerOverlay({
  1. Color borderColor = Colors.red,
  2. double borderWidth = 3.0,
  3. Color overlayColor = const Color.fromRGBO(0, 0, 0, 40),
  4. double borderRadius = 0,
  5. double borderLength = 40,
  6. double cutOutSize = 0.5,
})

Implementation

const DynamicScannerOverlay(
    {super.borderColor,
    super.borderWidth,
    super.overlayColor,
    super.borderRadius,
    super.borderLength,
    this.cutOutSize = 0.5})
    : assert(cutOutSize >= 0 && cutOutSize <= 1,
          'The cut out size must be between 0 and 1');