BlockRepository constructor Null safety

BlockRepository(
  1. Database db
)

Builds a BlockRepository that will use db for persistence.

It calls createTable to make sure the table exists.

Implementation

BlockRepository(this.db) {
  createTable();
}