QRBarScannerCamera constructor

QRBarScannerCamera({
  1. Key? key,
  2. required ValueChanged<String?> qrCodeCallback,
  3. Widget? child,
  4. BoxFit fit = BoxFit.cover,
  5. WidgetBuilder? notStartedBuilder,
  6. WidgetBuilder? offscreenBuilder,
  7. ErrorCallback? onError,
  8. 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);