Configuration constructor

Configuration({
  1. Iterable<MapEntry<String, String>>? strings,
  2. Iterable<BarcodeFormat>? restrictFormat,
  3. int? useCamera,
  4. AndroidConfiguration? android,
  5. bool? autoEnableFlash,
})

Implementation

factory Configuration({
  $core.Iterable<$core.MapEntry<$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.addEntries(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;
}