themes and some refractoring
This commit is contained in:
@@ -23,12 +23,7 @@ class CustomDeckRepository {
|
||||
}
|
||||
|
||||
Future<void> updateCard(CustomKanjiItem item) async {
|
||||
final deck = await getCustomDeck();
|
||||
final index = deck.indexWhere((element) => element.characters == item.characters);
|
||||
if (index != -1) {
|
||||
deck[index] = item;
|
||||
await saveDeck(deck);
|
||||
}
|
||||
await updateCards([item]);
|
||||
}
|
||||
|
||||
Future<void> updateCards(List<CustomKanjiItem> itemsToUpdate) async {
|
||||
|
||||
Reference in New Issue
Block a user