Is someone able to explain to me why 'context' in there is undefined? i Watched like 5 videos about BuildContext and i still don't understand it. Yes i'm beginner with dart
class ZmienneClass extends ChangeNotifier {
void decrementCounter(int liczba) {
if (_rundy == 0) {
Navigator.push(context,
MaterialPageRoute(builder: (context) => resGamePage(title: "")));
};}}