import 'package:flutter/material.dart'; import 'package:freekake/util/player_point.dart'; class PointsProvider with ChangeNotifier { PlayerPoints _points = PlayerPoints(xp: 0, gp: 0, sp: 0, level: 1); PlayerPoints get points => _points; void gainXP(int value) { _points.addXP(value); notifyListeners(); } void gainGP(int value) { _points.addGP(value); notifyListeners(); } void gainSP(int value) { _points.addSP(value); notifyListeners(); } }