ObjectView constructor

ObjectView({
  1. String? rootId,
  2. Iterable<Block>? blocks,
  3. Iterable<ObjectView_DetailsSet>? details,
  4. SmartBlockType? type,
  5. Iterable<Relation>? relations,
  6. Restrictions? restrictions,
  7. ObjectView_HistorySize? history,
  8. Iterable<RelationLink>? relationLinks,
  9. Iterable<ObjectView_BlockParticipant>? blockParticipants,
})

Implementation

factory ObjectView({
  $core.String? rootId,
  $core.Iterable<Block>? blocks,
  $core.Iterable<ObjectView_DetailsSet>? details,
  SmartBlockType? type,
  $core.Iterable<Relation>? relations,
  Restrictions? restrictions,
  ObjectView_HistorySize? history,
  $core.Iterable<RelationLink>? relationLinks,
  $core.Iterable<ObjectView_BlockParticipant>? blockParticipants,
}) {
  final result = create();
  if (rootId != null) result.rootId = rootId;
  if (blocks != null) result.blocks.addAll(blocks);
  if (details != null) result.details.addAll(details);
  if (type != null) result.type = type;
  if (relations != null) result.relations.addAll(relations);
  if (restrictions != null) result.restrictions = restrictions;
  if (history != null) result.history = history;
  if (relationLinks != null) result.relationLinks.addAll(relationLinks);
  if (blockParticipants != null)
    result.blockParticipants.addAll(blockParticipants);
  return result;
}