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();
}