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;
}