closeDB method

Future<bool> closeDB()

Close this table database. Cannot be accessed anymore

Implementation

Future<bool> closeDB() async {
  try {
    if (_databaseInitialized /*&& database.isOpen*/) await _database.close();
    return true;
  } catch (e) {
    return false;
  }
}