CheckpointBeacon constructor

CheckpointBeacon({
  1. int? checkpoint,
  2. Hash? hashPrevBlock,
})

Implementation

factory CheckpointBeacon({
  int? checkpoint,
  Hash? hashPrevBlock,
}) {
  final _result = create();
  if (checkpoint != null) {
    _result.checkpoint = checkpoint;
  }
  if (hashPrevBlock != null) {
    _result.hashPrevBlock = hashPrevBlock;
  }
  return _result;
}