SchemaDocumentValue constructor Null safety

SchemaDocumentValue(
  1. {String? name,
  2. SchemaKind? field_2,
  3. BoolValue? boolValue,
  4. StringValue? stringValue,
  5. IntValue? intValue,
  6. FloatValue? floatValue,
  7. BytesValue? bytesValue,
  8. LinkValue? linkValue,
  9. ArrayValue? arrayValue}
)

Implementation

factory SchemaDocumentValue({
  $core.String? name,
  $5.SchemaKind? field_2,
  BoolValue? boolValue,
  StringValue? stringValue,
  IntValue? intValue,
  FloatValue? floatValue,
  BytesValue? bytesValue,
  LinkValue? linkValue,
  ArrayValue? arrayValue,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (field_2 != null) {
    _result.field_2 = field_2;
  }
  if (boolValue != null) {
    _result.boolValue = boolValue;
  }
  if (stringValue != null) {
    _result.stringValue = stringValue;
  }
  if (intValue != null) {
    _result.intValue = intValue;
  }
  if (floatValue != null) {
    _result.floatValue = floatValue;
  }
  if (bytesValue != null) {
    _result.bytesValue = bytesValue;
  }
  if (linkValue != null) {
    _result.linkValue = linkValue;
  }
  if (arrayValue != null) {
    _result.arrayValue = arrayValue;
  }
  return _result;
}