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. 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.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 (uninterpretedOption != null) {
    _result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return _result;
}