void setLoading({required bool isLoading, String? error}) { state = state.copyWith(isLoading: isLoading, error: error); }