close method

Future<void> close()
inherited

Closes the database.

Implementation

Future<void> close() async {
  await changeListener.close();

  final database = this.database;
  if (database is sqflite.Database && database.isOpen) {
    await database.close();
  }
}