commit method Null safety
- BlockModel block
Persists the block into db
.
This method should be called only after all the transactions are committed.
Implementation
void commit(BlockModel block) => _repository.save(block);
Persists the block into db
.
This method should be called only after all the transactions are committed.
void commit(BlockModel block) => _repository.save(block);