Hibok
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

21 行
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. }