FieldOptions constructor

FieldOptions({
  1. FieldOptions_CType? ctype,
  2. bool? packed,
  3. bool? deprecated,
  4. bool? lazy,
  5. FieldOptions_JSType? jstype,
  6. bool? weak,
  7. 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.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 (uninterpretedOption != null) {
    $result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return $result;
}