Snapshot constructor

Snapshot({
  1. Int64? height,
  2. int? format,
  3. int? chunks,
  4. List<int>? hash,
  5. Metadata? metadata,
})

Implementation

factory Snapshot({
  $fixnum.Int64? height,
  $core.int? format,
  $core.int? chunks,
  $core.List<$core.int>? hash,
  Metadata? metadata,
}) {
  final _result = create();
  if (height != null) {
    _result.height = height;
  }
  if (format != null) {
    _result.format = format;
  }
  if (chunks != null) {
    _result.chunks = chunks;
  }
  if (hash != null) {
    _result.hash = hash;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  return _result;
}