BUG: Add card refresh list
This commit is contained in:
parent
bcff545dd7
commit
52f9eb7ba6
7 changed files with 166 additions and 131 deletions
|
|
@ -33,11 +33,6 @@ class MzansiWalletProvider extends ChangeNotifier {
|
|||
notifyListeners();
|
||||
}
|
||||
|
||||
void addLoyaltyCard({required MIHLoyaltyCard newCard}) {
|
||||
loyaltyCards.add(newCard);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void deleteLoyaltyCard({required int cardId}) {
|
||||
loyaltyCards.removeWhere((card) => card.idloyalty_cards == cardId);
|
||||
notifyListeners();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue