Db constructor

Db(
  1. {Database sqfliteDatabase}
)

An empty database. Has to be initialized with init

Implementation

Db({this.sqfliteDatabase}) {
  if (sqfliteDatabase != null) {
    _db = sqfliteDatabase;
    _dbFile = File(sqfliteDatabase.path);
    _isReady = true;
    _readyCompleter.complete();
  }
}