SmartBlockSnapshotBase constructor

SmartBlockSnapshotBase({
  1. Iterable<Block>? blocks,
  2. Struct? details,
  3. @Deprecated('This field is deprecated.') Struct? fileKeys,
  4. @Deprecated('This field is deprecated.') Iterable<Relation>? extraRelations,
  5. Iterable<String>? objectTypes,
  6. Struct? collections,
  7. Iterable<RelationLink>? relationLinks,
  8. Iterable<String>? removedCollectionKeys,
  9. String? key,
  10. Int64? originalCreatedTimestamp,
  11. FileInfo? fileInfo,
})

Implementation

factory SmartBlockSnapshotBase({
  $core.Iterable<Block>? blocks,
  $0.Struct? details,
  @$core.Deprecated('This field is deprecated.') $0.Struct? fileKeys,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<Relation>? extraRelations,
  $core.Iterable<$core.String>? objectTypes,
  $0.Struct? collections,
  $core.Iterable<RelationLink>? relationLinks,
  $core.Iterable<$core.String>? removedCollectionKeys,
  $core.String? key,
  $fixnum.Int64? originalCreatedTimestamp,
  FileInfo? fileInfo,
}) {
  final result = create();
  if (blocks != null) result.blocks.addAll(blocks);
  if (details != null) result.details = details;
  if (fileKeys != null) result.fileKeys = fileKeys;
  if (extraRelations != null) result.extraRelations.addAll(extraRelations);
  if (objectTypes != null) result.objectTypes.addAll(objectTypes);
  if (collections != null) result.collections = collections;
  if (relationLinks != null) result.relationLinks.addAll(relationLinks);
  if (removedCollectionKeys != null)
    result.removedCollectionKeys.addAll(removedCollectionKeys);
  if (key != null) result.key = key;
  if (originalCreatedTimestamp != null)
    result.originalCreatedTimestamp = originalCreatedTimestamp;
  if (fileInfo != null) result.fileInfo = fileInfo;
  return result;
}