SmartBlockSnapshotBase constructor
SmartBlockSnapshotBase({
- Iterable<
Block> ? blocks, - Struct? details,
- @Deprecated('This field is deprecated.') Struct? fileKeys,
- @Deprecated('This field is deprecated.') Iterable<
Relation> ? extraRelations, - Iterable<
String> ? objectTypes, - Struct? collections,
- Iterable<
RelationLink> ? relationLinks, - Iterable<
String> ? removedCollectionKeys, - String? key,
- Int64? originalCreatedTimestamp,
- 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;
}