Configuration constructor

Configuration({
  1. Map<String, String>? strings,
  2. Iterable<BarcodeFormat>? restrictFormat,
  3. int? useCamera,
  4. AndroidConfiguration? android,
  5. 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;
}