Add: closing module on errors
This commit is contained in:
@@ -39,6 +39,11 @@ class GymLinkProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
void setOnError(void Function() onError) {
|
||||
_onError = onError;
|
||||
_onError = () {
|
||||
_token = '';
|
||||
_isLoading = true;
|
||||
onError();
|
||||
notifyListeners();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user