destroy method

void destroy()

Implementation

void destroy() {
  var db = _db;
  if (db != null && db.isOpen) {
    db.close();
    _db = null;
  }
}