setLoading method
Sets the loading state and notifies listeners if it changes.
Implementation
void setLoading(bool loading) {
if (_isLoading != loading) {
_isLoading = loading;
notifyListeners();
}
}
Sets the loading state and notifies listeners if it changes.
void setLoading(bool loading) {
if (_isLoading != loading) {
_isLoading = loading;
notifyListeners();
}
}