Add: closing module on errors

This commit is contained in:
2024-05-22 15:46:39 +03:00
parent 80da7e9008
commit e7073cec67

View File

@@ -39,6 +39,11 @@ class GymLinkProvider with ChangeNotifier {
}
void setOnError(void Function() onError) {
_onError = onError;
_onError = () {
_token = '';
_isLoading = true;
onError();
notifyListeners();
};
}
}