Block constructor

Block({
  1. required String genesisHash,
  2. required String genesisId,
  3. required String previousBlockHash,
  4. required int round,
  5. required String seed,
  6. required int timestamp,
  7. required List<Transaction> transactions,
  8. required String transactionsRoot,
  9. BlockRewards? rewards,
  10. int? txnCounter,
  11. BlockUpgradeState? upgradeState,
  12. BlockUpgradeVote? upgradeVote,
})

Implementation

Block({
  required this.genesisHash,
  required this.genesisId,
  required this.previousBlockHash,
  required this.round,
  required this.seed,
  required this.timestamp,
  required this.transactions,
  required this.transactionsRoot,
  this.rewards,
  this.txnCounter,
  this.upgradeState,
  this.upgradeVote,
});