setConsent method
Implementation
void setConsent(bool newValue) {
// Update the state for visitor
_hasConsented = newValue;
// Delegate the action to strategy
_visitorDelegate.setConsent(_hasConsented);
}
void setConsent(bool newValue) {
// Update the state for visitor
_hasConsented = newValue;
// Delegate the action to strategy
_visitorDelegate.setConsent(_hasConsented);
}