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