BackupRepository constructor Null safety

BackupRepository(
  1. Database _db
)

Builds a BackupRepository that will use _db for persistence.

It calls _createTable to make sure the table exists.

Implementation

BackupRepository(this._db) {
  _createTable();
}