FieldOptions constructor

FieldOptions({
  1. FieldOptions_CType? ctype,
  2. bool? packed,
  3. bool? deprecated,
  4. bool? lazy,
  5. FieldOptions_JSType? jstype,
  6. bool? weak,
  7. bool? unverifiedLazy,
  8. bool? debugRedact,
  9. FieldOptions_OptionRetention? retention,
  10. Iterable<FieldOptions_OptionTargetType>? targets,
  11. Iterable<FieldOptions_EditionDefault>? editionDefaults,
  12. FeatureSet? features,
  13. Iterable<UninterpretedOption>? uninterpretedOption,
})

Implementation

factory FieldOptions({
  FieldOptions_CType? ctype,
  $core.bool? packed,
  $core.bool? deprecated,
  $core.bool? lazy,
  FieldOptions_JSType? jstype,
  $core.bool? weak,
  $core.bool? unverifiedLazy,
  $core.bool? debugRedact,
  FieldOptions_OptionRetention? retention,
  $core.Iterable<FieldOptions_OptionTargetType>? targets,
  $core.Iterable<FieldOptions_EditionDefault>? editionDefaults,
  FeatureSet? features,
  $core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
  final $result = create();
  if (ctype != null) {
    $result.ctype = ctype;
  }
  if (packed != null) {
    $result.packed = packed;
  }
  if (deprecated != null) {
    $result.deprecated = deprecated;
  }
  if (lazy != null) {
    $result.lazy = lazy;
  }
  if (jstype != null) {
    $result.jstype = jstype;
  }
  if (weak != null) {
    $result.weak = weak;
  }
  if (unverifiedLazy != null) {
    $result.unverifiedLazy = unverifiedLazy;
  }
  if (debugRedact != null) {
    $result.debugRedact = debugRedact;
  }
  if (retention != null) {
    $result.retention = retention;
  }
  if (targets != null) {
    $result.targets.addAll(targets);
  }
  if (editionDefaults != null) {
    $result.editionDefaults.addAll(editionDefaults);
  }
  if (features != null) {
    $result.features = features;
  }
  if (uninterpretedOption != null) {
    $result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return $result;
}