QueryResultItem constructor Null safety

QueryResultItem(
  1. {String? did,
  2. EntityKind? kind,
  3. WhoIs? whoIs,
  4. WhatIs? whatIs,
  5. SchemaDefinition? schemaDefinition,
  6. WhereIs? whereIs,
  7. Iterable<WhereIs>? whereIsList}
)

Implementation

factory QueryResultItem({
  $core.String? did,
  $6.EntityKind? kind,
  $9.WhoIs? whoIs,
  $10.WhatIs? whatIs,
  $5.SchemaDefinition? schemaDefinition,
  $0.WhereIs? whereIs,
  $core.Iterable<$0.WhereIs>? whereIsList,
}) {
  final _result = create();
  if (did != null) {
    _result.did = did;
  }
  if (kind != null) {
    _result.kind = kind;
  }
  if (whoIs != null) {
    _result.whoIs = whoIs;
  }
  if (whatIs != null) {
    _result.whatIs = whatIs;
  }
  if (schemaDefinition != null) {
    _result.schemaDefinition = schemaDefinition;
  }
  if (whereIs != null) {
    _result.whereIs = whereIs;
  }
  if (whereIsList != null) {
    _result.whereIsList.addAll(whereIsList);
  }
  return _result;
}