Configuration constructor
Configuration({
- Map<
String, String> ? strings, - Iterable<
BarcodeFormat> ? restrictFormat, - int? useCamera,
- AndroidConfiguration? android,
- bool? autoEnableFlash,
Implementation
factory Configuration({
$core.Map<$core.String, $core.String>? strings,
$core.Iterable<BarcodeFormat>? restrictFormat,
$core.int? useCamera,
AndroidConfiguration? android,
$core.bool? autoEnableFlash,
}) {
final $result = create();
if (strings != null) {
$result.strings.addAll(strings);
}
if (restrictFormat != null) {
$result.restrictFormat.addAll(restrictFormat);
}
if (useCamera != null) {
$result.useCamera = useCamera;
}
if (android != null) {
$result.android = android;
}
if (autoEnableFlash != null) {
$result.autoEnableFlash = autoEnableFlash;
}
return $result;
}