Hibok
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

21 wiersze
378 B

  1. import 'package:flutter/material.dart';
  2. class VoucherChangeProvider with ChangeNotifier {
  3. int voucher = 0;
  4. initVoucher(int newValue) {
  5. voucher = newValue;
  6. notifyListeners();
  7. }
  8. addVoucher(int newValue) {
  9. voucher += newValue;
  10. notifyListeners();
  11. }
  12. subVoucher(int newValue) {
  13. voucher -= newValue;
  14. notifyListeners();
  15. }
  16. }