getPending method Null safety

List<TransactionModel> getPending()

Gets all the transactions that were not committed by commit.

Implementation

List<TransactionModel> getPending() => _repository.getByBlockId(null);