closeCurrentDatabase method

Future<void> closeCurrentDatabase()

Implementation

Future<void> closeCurrentDatabase() async {
  if (database.value != null) {
    await database.value!.close(); // إغلاق قاعدة البيانات الحالية
    log('Closed current database!');
  }
}