BlockRef constructor

BlockRef({
  1. ChainRef? blockchain,
  2. Int64? height,
  3. String? blockId,
})

Implementation

factory BlockRef({
  ChainRef? blockchain,
  $fixnum.Int64? height,
  $core.String? blockId,
}) {
  final result = create();
  if (blockchain != null) result.blockchain = blockchain;
  if (height != null) result.height = height;
  if (blockId != null) result.blockId = blockId;
  return result;
}