XchainRepository constructor Null safety

XchainRepository(
  1. Database _db
)

Builds a XchainRepository that will use _db for persistence.

It calls createTable to make sure the table exists.

Implementation

XchainRepository(this._db) {
  createTable();
}