FieldOptions constructor
FieldOptions({
- FieldOptions_CType? ctype,
- bool? packed,
- bool? deprecated,
- bool? lazy,
- FieldOptions_JSType? jstype,
- bool? weak,
- bool? unverifiedLazy,
- bool? debugRedact,
- FieldOptions_OptionRetention? retention,
- Iterable<
FieldOptions_OptionTargetType> ? targets, - Iterable<
FieldOptions_EditionDefault> ? editionDefaults, - FeatureSet? features,
- 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;
}