QrScannerOverlayShape constructor

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

Implementation

QrScannerOverlayShape({
  this.borderColor = Colors.red,
  this.borderWidth = 3.0,
  this.overlayColor = const Color.fromRGBO(0, 0, 0, 80),
  this.borderRadius = 0,
  this.borderLength = 40,
  this.cutOutSize = 250,
}) : assert(
borderLength <= cutOutSize / 2 + borderWidth * 2,
"Border can't be larger than ${cutOutSize / 2 + borderWidth * 2}");