ProtoBlockHeader_Empty constructor

ProtoBlockHeader_Empty({
  1. List<int>? parentHash,
  2. Int64? height,
  3. List<int>? root,
  4. List<int>? identityRoot,
  5. Int64? timestamp,
  6. List<int>? blockSeed,
  7. int? flags,
})

Implementation

factory ProtoBlockHeader_Empty({
  $core.List<$core.int>? parentHash,
  $fixnum.Int64? height,
  $core.List<$core.int>? root,
  $core.List<$core.int>? identityRoot,
  $fixnum.Int64? timestamp,
  $core.List<$core.int>? blockSeed,
  $core.int? flags,
}) {
  final _result = create();
  if (parentHash != null) {
    _result.parentHash = parentHash;
  }
  if (height != null) {
    _result.height = height;
  }
  if (root != null) {
    _result.root = root;
  }
  if (identityRoot != null) {
    _result.identityRoot = identityRoot;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (blockSeed != null) {
    _result.blockSeed = blockSeed;
  }
  if (flags != null) {
    _result.flags = flags;
  }
  return _result;
}