mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
update
This commit is contained in:
@@ -42,6 +42,12 @@ class TransactionsNotifier extends StateNotifier<List<Transaction>> {
|
||||
state = [...state, transaction];
|
||||
_storage.addTransaction(transaction);
|
||||
}
|
||||
|
||||
void clearAll() {
|
||||
state = [];
|
||||
// also clear from SharedPreferences:
|
||||
SharedPreferences.getInstance().then((prefs) => prefs.remove('transactions'));
|
||||
}
|
||||
}
|
||||
|
||||
// Search and filter state
|
||||
|
||||
Reference in New Issue
Block a user