deleteAllBooksProgress method

Future<bool> deleteAllBooksProgress()

Implementation

Future<bool> deleteAllBooksProgress() async {
  try {
    await isar.writeTxn(() async {
      await isar.bookProgressModels.where().deleteAll();
    });
    return true;
  } on Exception {
    return false;
  }
}