Hibok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 regels
368 B

  1. import 'package:flutter/material.dart';
  2. class MoneyChangeProvider with ChangeNotifier {
  3. int money = 0;
  4. initMoney(int fromMoney) {
  5. money = fromMoney;
  6. notifyListeners();
  7. }
  8. addMoney(int fromMoney) {
  9. money += fromMoney;
  10. notifyListeners();
  11. }
  12. subMoney(int fromMoney) {
  13. money -= fromMoney;
  14. notifyListeners();
  15. }
  16. }