Change constructor

Change({
  1. Iterable<Change_Content>? content,
  2. Change_Snapshot? snapshot,
  3. Iterable<Change_FileKeys>? fileKeys,
  4. Int64? timestamp,
  5. int? version,
  6. int? changeType,
})

Implementation

factory Change({
  $core.Iterable<Change_Content>? content,
  Change_Snapshot? snapshot,
  $core.Iterable<Change_FileKeys>? fileKeys,
  $fixnum.Int64? timestamp,
  $core.int? version,
  $core.int? changeType,
}) {
  final result = create();
  if (content != null) result.content.addAll(content);
  if (snapshot != null) result.snapshot = snapshot;
  if (fileKeys != null) result.fileKeys.addAll(fileKeys);
  if (timestamp != null) result.timestamp = timestamp;
  if (version != null) result.version = version;
  if (changeType != null) result.changeType = changeType;
  return result;
}