ScannerPainter constructor Null safety
Implementation
ScannerPainter({
double? hornStrokeWidth,
double? scannerStrokeWidth,
double? hornWidth,
Color? scannerColor,
Color? borderColor,
Color? backgroundColor,
this.scannerSize,
required this.value,
}) : scannerColor = scannerColor ?? Colors.white,
borderColor = borderColor ?? Colors.white,
backgroundColor = backgroundColor ?? Colors.black45,
hornStrokeWidth = hornStrokeWidth ?? 4,
hornWidth = hornWidth ?? 15,
scannerStrokeWidth = scannerStrokeWidth ?? 2;