commit method Null safety

void commit(
  1. BlockModel block,
  2. {Uint8List? xchain}
)

Persists the block into db.

This method should be called only after all the transactions are committed.

Implementation

void commit(BlockModel block, {Uint8List? xchain}) =>
    _repository.save(block, xchain: xchain);