QRBarScannerCamera constructor
QRBarScannerCamera({
- Key? key,
- required ValueChanged<
String?> qrCodeCallback, - Widget? child,
- BoxFit fit = BoxFit.cover,
- WidgetBuilder? notStartedBuilder,
- WidgetBuilder? offscreenBuilder,
- ErrorCallback? onError,
- List<
BarcodeFormats> ? formats,
Implementation
QRBarScannerCamera({
Key? key,
required this.qrCodeCallback,
this.child,
this.fit = BoxFit.cover,
WidgetBuilder? notStartedBuilder,
WidgetBuilder? offscreenBuilder,
ErrorCallback? onError,
this.formats,
}) : notStartedBuilder = notStartedBuilder ?? _defaultNotStartedBuilder,
offscreenBuilder =
offscreenBuilder ?? notStartedBuilder ?? _defaultOffscreenBuilder,
onError = onError ?? _defaultOnError,
super(key: key);