ChainHead constructor

ChainHead({
  1. ChainRef? chain,
  2. Int64? height,
  3. String? blockId,
  4. Int64? timestamp,
  5. List<int>? weight,
  6. Int64? reorg,
})

Implementation

factory ChainHead({
  $0.ChainRef? chain,
  $fixnum.Int64? height,
  $core.String? blockId,
  $fixnum.Int64? timestamp,
  $core.List<$core.int>? weight,
  $fixnum.Int64? reorg,
}) {
  final result = create();
  if (chain != null) result.chain = chain;
  if (height != null) result.height = height;
  if (blockId != null) result.blockId = blockId;
  if (timestamp != null) result.timestamp = timestamp;
  if (weight != null) result.weight = weight;
  if (reorg != null) result.reorg = reorg;
  return result;
}